diff options
author | Mario <mario@mariovavti.com> | 2020-11-20 14:42:46 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-20 14:42:46 +0000 |
commit | 337d8ea78c2e799257fa4cbaf0ba96bc7c3d05d3 (patch) | |
tree | 7bdc4b1c582a7a9bdfaa4e4556c9bc6164786cf7 /view/js | |
parent | 4c0a26dbf9fca5358320ad11911aac1d5cc530b3 (diff) | |
download | volse-hubzilla-337d8ea78c2e799257fa4cbaf0ba96bc7c3d05d3.tar.gz volse-hubzilla-337d8ea78c2e799257fa4cbaf0ba96bc7c3d05d3.tar.bz2 volse-hubzilla-337d8ea78c2e799257fa4cbaf0ba96bc7c3d05d3.zip |
minor cleanup
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/view/js/main.js b/view/js/main.js index bd595dbb3..c6460f356 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1366,20 +1366,18 @@ function post_comment(id) { if(data.success) { localStorage.removeItem("comment_body-" + id); $("#comment-edit-preview-" + id).hide(); - //$("#comment-edit-wrapper-" + id).hide(); - $("#comment-edit-text-" + id).val('').blur().attr('placeholder', aStr.comment); + $('#wall-item-comment-wrapper-' + id).before(data.html); + $('#wall-item-ago-' + data.id + ' .autotime').timeago(); + $('body').css('cursor', 'unset'); + commentBusy = false; + var tarea = document.getElementById("comment-edit-text-" + id); if(tarea) { commentClose(tarea, id); - $(document).unbind( "click.commentOpen"); + $(document).off( "click.commentOpen"); } - $('#wall-item-comment-wrapper-' + id).before(data.html); - $('#wall-item-ago-' + data.id + ' .autotime').timeago(); - $('body').css('cursor', 'unset'); - //if(timer) clearTimeout(timer); - //timer = setTimeout(updateInit, 500); } if(data.reload) { window.location.href=data.reload; |