aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-05-24 17:50:09 +0200
committermarijus <mario@mariovavti.com>2014-05-24 17:50:09 +0200
commitbf88720fae18f0ffc2824cf94c262e5dc9c907ec (patch)
treeaf0c36ebdc6d8d1daf61d3a2ee1c3207d35df5ce /view/theme/redbasic/js
parent1879a8b747fb7d170d11700310a9384084b7caee (diff)
downloadvolse-hubzilla-bf88720fae18f0ffc2824cf94c262e5dc9c907ec.tar.gz
volse-hubzilla-bf88720fae18f0ffc2824cf94c262e5dc9c907ec.tar.bz2
volse-hubzilla-bf88720fae18f0ffc2824cf94c262e5dc9c907ec.zip
possible fix for empty commentbox colapsing on tool-button click
Diffstat (limited to 'view/theme/redbasic/js')
-rw-r--r--view/theme/redbasic/js/redbasic.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index d981b0c11..d4349df61 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -1,3 +1,13 @@
+function commentCloseRed(obj,id) {
+ $(document).click(function() {
+ if(obj.value == '') {
+ obj.value = aStr['comment'];
+ $("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty");
+ $("#comment-tools-" + id).hide();
+ }
+ });
+}
+
$(document).ready(function() {
$('#expand-aside').click(function() {