From 7851b6696239894b2d0c7f76ad0f4c5cc8855a4a Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 30 Jun 2023 18:54:39 +0300 Subject: [PATCH] stop the generic disabling function from re-enabling "post" button --- files/assets/js/bottom.js | 3 ++- files/templates/submit.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 8d54bf2c3..c514fbf66 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -104,7 +104,8 @@ for (const element of TH) { const btns_to_disable = document.querySelectorAll('[type="submit"]') for (const element of btns_to_disable) { - element.addEventListener('click', () => {disable_btn(element)}) + if (!element.className.contains("donotdisable")) + element.addEventListener('click', () => {disable_btn(element)}) } function disable_btn(t) { diff --git a/files/templates/submit.html b/files/templates/submit.html index f11bedae2..104379b97 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -101,7 +101,7 @@ - +