aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-05-25 07:46:42 +1000
committerRedMatrix <info@friendica.com>2014-05-25 07:46:42 +1000
commite6015e71697bb700aab5e5165f9d66a8cbfcab7a (patch)
tree7120287e1937ce45fd788ca003732e10974da1ce /view/js/main.js
parent1879a8b747fb7d170d11700310a9384084b7caee (diff)
parent2bdecdce17057e4464f54918ad17d48071006161 (diff)
downloadvolse-hubzilla-e6015e71697bb700aab5e5165f9d66a8cbfcab7a.tar.gz
volse-hubzilla-e6015e71697bb700aab5e5165f9d66a8cbfcab7a.tar.bz2
volse-hubzilla-e6015e71697bb700aab5e5165f9d66a8cbfcab7a.zip
Merge pull request #473 from git-marijus/master
possible fix for empty commentbox collapsing on tool-button click
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js21
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) {