From 68e481b15d4e1c6c9a58380d2c733290b71b642a Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 7 Mar 2023 02:58:02 +0200 Subject: [PATCH] fix disabling buttons --- files/assets/js/bottom.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 29055fbf1..d5b41a407 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -98,11 +98,15 @@ for (const element of TH) { } function disable_btn(t) { - t.disabled = true t.classList.add('disabled'); + + setTimeout(() => { + t.disabled = true; + }, 1); + setTimeout(() => { - t.disabled = false; t.classList.remove("disabled"); + t.disabled = false; }, 2000); }