aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-27 19:02:50 -0700
committerzotlabs <mike@macgirvin.com>2017-08-27 19:02:50 -0700
commitd0d0a2df3a4011cf92c34293d21deee4412ac4a1 (patch)
tree0001947970dfda8accf8c5a27f9bbf30f72f1138
parent99ca2a7cc6e5560a90abe4acbf73a95539231d1f (diff)
downloadvolse-hubzilla-d0d0a2df3a4011cf92c34293d21deee4412ac4a1.tar.gz
volse-hubzilla-d0d0a2df3a4011cf92c34293d21deee4412ac4a1.tar.bz2
volse-hubzilla-d0d0a2df3a4011cf92c34293d21deee4412ac4a1.zip
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.
-rw-r--r--view/js/main.js4
1 files changed, 3 insertions, 1 deletions
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);
}