From d0d0a2df3a4011cf92c34293d21deee4412ac4a1 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 27 Aug 2017 19:02:50 -0700 Subject: 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. --- view/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 47815d2c6..486f5b8d6 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1084,8 +1084,10 @@ function post_comment(id) { $("#comment-edit-wrapper-" + id).hide(); $("#comment-edit-text-" + id).val(''); var tarea = document.getElementById("comment-edit-text-" + id); - if(tarea) + if(tarea) { commentClose(tarea, id); + $(document).unbind( "click.commentOpen"); + } if(timer) clearTimeout(timer); timer = setTimeout(NavUpdate,1500); } -- cgit v1.2.3