fix wrong item key

This commit is contained in:
Mario Vavti 2018-04-13 12:50:37 +02:00
parent 88ca6fc12e
commit 2867cd2043

View File

@ -1165,7 +1165,7 @@ function post_comment(id) {
$("#comment-edit-form-" + id).serialize(),
function(data) {
if(data.success) {
localStorage.removeItem("comment_body");
localStorage.removeItem("comment_body-" + id);
$("#comment-edit-preview-" + id).hide();
$("#comment-edit-wrapper-" + id).hide();
$("#comment-edit-text-" + id).val('');