possible fix for empty commentbox colapsing on tool-button click

This commit is contained in:
marijus
2014-05-24 17:50:09 +02:00
parent 1879a8b747
commit bf88720fae
3 changed files with 20 additions and 13 deletions

View File

@@ -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) {