Fixed comments not working.

This commit is contained in:
flash 2020-05-27 16:02:00 +00:00
parent f6fc3946d0
commit ae877ad1e3

View file

@ -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);
}