From 2867cd20436c09e7c603b950ed4d43d3445b8d7c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 13 Apr 2018 12:50:37 +0200 Subject: fix wrong item key --- view/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index 7ef373b66..acb9b462f 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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(''); -- cgit v1.2.3