fix issue with comment box re-opening after submit; however I should note that bind and unbind are deprecated in jquery > 1.3 and these calls probably need to be upgraded.

This commit is contained in:
zotlabs 2017-08-27 19:02:50 -07:00
parent 99ca2a7cc6
commit d0d0a2df3a

View File

@ -1084,8 +1084,10 @@ function post_comment(id) {
$("#comment-edit-wrapper-" + id).hide(); $("#comment-edit-wrapper-" + id).hide();
$("#comment-edit-text-" + id).val(''); $("#comment-edit-text-" + id).val('');
var tarea = document.getElementById("comment-edit-text-" + id); var tarea = document.getElementById("comment-edit-text-" + id);
if(tarea) if(tarea) {
commentClose(tarea, id); commentClose(tarea, id);
$(document).unbind( "click.commentOpen");
}
if(timer) clearTimeout(timer); if(timer) clearTimeout(timer);
timer = setTimeout(NavUpdate,1500); timer = setTimeout(NavUpdate,1500);
} }