From 693e882eec2c039c852719261f4bf2ecf8d76898 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 9 Mar 2023 22:31:13 +0200 Subject: [PATCH] am i retarded? --- files/assets/js/bottom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 49c011be4..e9ba1934d 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -99,6 +99,8 @@ for (const element of TH) { function disable_btn(t) { if (!t.classList.contains('disabled')) { + t.classList.add('disabled'); + setTimeout(() => { t.disabled = true; }, 0.0000000000000000001); @@ -108,7 +110,6 @@ function disable_btn(t) { t.disabled = false; }, 2000); } - t.classList.add('disabled'); } function register_new_elements(e) {