From 4e220c917a9cf9f3eeb65acf8d565fe5eac4d120 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 27 Apr 2023 19:23:01 +0200 Subject: [PATCH] fix https://rdrama.net/h/meta/post/166300/bugfixing-megathread-marseywock/4055938#context --- files/assets/js/comments_v.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 87c4fd4ea..0a10318c2 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -25,7 +25,7 @@ function report_commentModal(id, author) { reason_comment.focus() }, 500); - reportCommentButton.addEventListener('click', function() { + reportCommentButton.onclick = function() { this.innerHTML='Reporting comment'; postToast(this, `/report/comment/${id}`, @@ -34,7 +34,7 @@ function report_commentModal(id, author) { }, () => {} ); - }) + } }; // Returns the selection text based on the range with the HTML