diff --git a/public/static/functions/comments.js b/public/static/functions/comments.js index ab92d05e5..f8564a9ed 100644 --- a/public/static/functions/comments.js +++ b/public/static/functions/comments.js @@ -192,7 +192,7 @@ function Save_Edit(postid) { if (location.href.match(/forums\.php/)) { ajax.post("forums.php?action=takeedit","form" + postid, function (response) { $('#bar' + postid).raw().innerHTML = "Report "; - $('#preview' + postid).raw().innerHTML = response; + $('#content' + postid).raw().innerHTML = response; $('#editbox' + postid).ghide(); $('#pmbox' + postid).ghide(); $('#postcontrol-' + postid).gshow(); @@ -200,7 +200,7 @@ function Save_Edit(postid) { } else { ajax.post("comments.php?action=take_edit","form" + postid, function (response) { $('#bar' + postid).raw().innerHTML = ""; - $('#preview' + postid).raw().innerHTML = response; + $('#content' + postid).raw().innerHTML = response; $('#editbox' + postid).ghide(); $('#pmbox' + postid).ghide(); $('#postcontrol-' + postid).gshow();