make disabling buttons consistent

pull/139/head
Aevann 2023-03-10 01:49:42 +02:00
parent 24101995af
commit 555941cfc7
1 changed files with 2 additions and 4 deletions

View File

@ -280,10 +280,8 @@ function post_comment(fullname, hide){
}
else {
showToast(false, getMessageFromJsonData(false, data));
setTimeout(() => {
btn.disabled = false;
btn.classList.remove('disabled');
}, 2000);
btn.disabled = false;
btn.classList.remove('disabled');
}
}
xhr.send(form)