From ae877ad1e39ad0a3ab5b70089c70e0dceee5bae2 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 27 May 2020 16:02:00 +0000 Subject: [PATCH] Fixed comments not working. --- assets/js/misuzu/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/misuzu/comments.js b/assets/js/misuzu/comments.js index e405a70c..8ba3a8fd 100644 --- a/assets/js/misuzu/comments.js +++ b/assets/js/misuzu/comments.js @@ -14,7 +14,7 @@ Misuzu.Comments.init = function() { var commentInputs = document.getElementsByClassName('comment__text--input'); for(var i = 0; i < commentInputs.length; ++i) { - commentInputs[i].form.action = ''; + commentInputs[i].form.action = 'javascript:void(0);'; commentInputs[i].form.addEventListener('submit', Misuzu.Comments.postCommentHandler); commentInputs[i].addEventListener('keydown', Misuzu.Comments.inputCommentHandler); }