diff options
author | Mario <mario@mariovavti.com> | 2020-11-22 16:37:20 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-22 16:37:20 +0000 |
commit | 451468d1297ba41a6c9ea29709444ceb15185bfb (patch) | |
tree | ebdeef7e01541c09dcacb8965304ec3ab3adff57 /view/js | |
parent | c0adf31da9a0d8f897dc68ab632c736891318ad5 (diff) | |
download | volse-hubzilla-451468d1297ba41a6c9ea29709444ceb15185bfb.tar.gz volse-hubzilla-451468d1297ba41a6c9ea29709444ceb15185bfb.tar.bz2 volse-hubzilla-451468d1297ba41a6c9ea29709444ceb15185bfb.zip |
fix mod item issue with remote channels
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/view/js/main.js b/view/js/main.js index 4c8cd0adf..35b03e03b 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1371,25 +1371,25 @@ function post_comment(id) { $('body').css('cursor', 'wait'); $("#comment-preview-inp-" + id).val("0"); + if(typeof conv_mode == typeof undefined) + conv_mode = ''; + + var form_data = $("#comment-edit-form-" + id).serialize(); + $.post( "item", - $("#comment-edit-form-" + id).serialize(), + form_data + '&conv_mode=' + conv_mode, function(data) { if(data.success) { + localStorage.removeItem("comment_body-" + id); $("#comment-edit-preview-" + id).hide(); $("#comment-edit-text-" + id).val('').blur().attr('placeholder', aStr.comment); - - if(! localUser) { - updateInit(); - } - else { - $('#wall-item-comment-wrapper-' + id).before(data.html); - $('#wall-item-ago-' + data.id + ' .autotime').timeago(); - $('body').css('cursor', 'unset'); - collapseHeight(); - commentBusy = false; - } + $('#wall-item-comment-wrapper-' + id).before(data.html); + $('#wall-item-ago-' + data.id + ' .autotime').timeago(); + $('body').css('cursor', 'unset'); + collapseHeight(); + commentBusy = false; var tarea = document.getElementById("comment-edit-text-" + id); if(tarea) { |