forked from rDrama/rDrama
1
0
Fork 0

make disabling buttons consistent

master
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 { else {
showToast(false, getMessageFromJsonData(false, data)); showToast(false, getMessageFromJsonData(false, data));
setTimeout(() => { btn.disabled = false;
btn.disabled = false; btn.classList.remove('disabled');
btn.classList.remove('disabled');
}, 2000);
} }
} }
xhr.send(form) xhr.send(form)