fix disabling buttons

master
Aevann 2023-03-07 02:58:02 +02:00
parent e1c534f058
commit 68e481b15d
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}