diff options
author | marijus <mario@mariovavti.com> | 2014-05-24 17:50:09 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-05-24 17:50:09 +0200 |
commit | bf88720fae18f0ffc2824cf94c262e5dc9c907ec (patch) | |
tree | af0c36ebdc6d8d1daf61d3a2ee1c3207d35df5ce /view/js/main.js | |
parent | 1879a8b747fb7d170d11700310a9384084b7caee (diff) | |
download | volse-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/js/main.js')
-rw-r--r-- | view/js/main.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/view/js/main.js b/view/js/main.js index b388ab940..2f695c77e 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -13,18 +13,15 @@ } function commentClose(obj,id) { - //$(document).on('click', function() { - if(obj.value == '') { - obj.value = aStr['comment']; - $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); - $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); - $("#mod-cmnt-wrap-" + id).hide(); - closeMenu("comment-tools-" + id); - return true; - } - return false; - //}); - + if(obj.value == '') { + obj.value = aStr['comment']; + $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); + $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); + $("#mod-cmnt-wrap-" + id).hide(); + closeMenu("comment-tools-" + id); + return true; + } + return false; } function showHideCommentBox(id) { |