From e221e7548f20797d501d41208e6659ed13fe1116 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 27 Apr 2023 19:24:07 +0200 Subject: [PATCH] same as last commit --- files/assets/js/report_post_modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/report_post_modal.js b/files/assets/js/report_post_modal.js index 8c4d882058..25f758f922 100644 --- a/files/assets/js/report_post_modal.js +++ b/files/assets/js/report_post_modal.js @@ -22,7 +22,7 @@ function report_postModal(id) { reason_post.focus() }, 500); - reportPostButton.addEventListener('click', function() { + reportPostButton.onclick = function() { this.innerHTML='Reporting post'; this.disabled = true; @@ -45,5 +45,5 @@ function report_postModal(id) { xhr.onerror=function(){alert(errortext)}; xhr.send(form); - }) + } };