aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/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) {