head.tpl: commentOpen() and commentClose() return true/false

usefull to concatenate other actions: "commentClose(this, $id) && cmtBbClose($id)"
This commit is contained in:
Fabrixxm 2012-08-10 04:25:08 -04:00
parent 4894619d7b
commit 2b7d08508d

View File

@ -39,7 +39,9 @@
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).show();
openMenu("comment-edit-submit-wrapper-" + id);
return true;
}
return false;
}
function commentClose(obj,id) {
if(obj.value == '') {
@ -48,7 +50,9 @@
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).hide();
closeMenu("comment-edit-submit-wrapper-" + id);
return true;
}
return false;
}