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(() => {
|
||||
targetElement.disabled = false;
|
||||
targetElement.classList.remove("disabled");
|
||||
if (targetElement !== null) {
|
||||
targetElement.disabled = false;
|
||||
targetElement.classList.remove("disabled");
|
||||
}
|
||||
}, 1500);
|
||||
|
||||
xhr.send(form);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue