forked from rDrama/rDrama
make disabling buttons consistent
parent
24101995af
commit
555941cfc7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue