fix latent error
This commit is contained in:
parent
a8494276af
commit
18dcd448ff
1 changed files with 4 additions and 2 deletions
|
@ -151,8 +151,10 @@ function postToast(targetElement, url, method, data, callbackFn) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
targetElement.disabled = false;
|
if (targetElement !== null) {
|
||||||
targetElement.classList.remove("disabled");
|
targetElement.disabled = false;
|
||||||
|
targetElement.classList.remove("disabled");
|
||||||
|
}
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|
||||||
xhr.send(form);
|
xhr.send(form);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue