Commit 337d8ea7 authored by Mario's avatar Mario
Browse files

minor cleanup

parent 4c0a26db
Pipeline #364546 passed with stage
in 5 minutes and 11 seconds
...@@ -1366,20 +1366,18 @@ function post_comment(id) { ...@@ -1366,20 +1366,18 @@ function post_comment(id) {
if(data.success) { if(data.success) {
localStorage.removeItem("comment_body-" + id); localStorage.removeItem("comment_body-" + id);
$("#comment-edit-preview-" + id).hide(); $("#comment-edit-preview-" + id).hide();
//$("#comment-edit-wrapper-" + id).hide();
$("#comment-edit-text-" + id).val('').blur().attr('placeholder', aStr.comment); $("#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); var tarea = document.getElementById("comment-edit-text-" + id);
if(tarea) { if(tarea) {
commentClose(tarea, id); 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) { if(data.reload) {
window.location.href=data.reload; window.location.href=data.reload;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment