enable button after 5 seconds
This commit is contained in:
parent
b316e4a242
commit
a2347dd241
@ -161,6 +161,10 @@
|
||||
|
||||
function ask(field, text){
|
||||
if (confirm(text)) {
|
||||
setTimeout(() => {
|
||||
field.innerHTML = field.innerHTML.replace(`<span class="loading"></span>`, '');
|
||||
field.removeAttribute("disabled");
|
||||
}, 5000);
|
||||
return true;
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
|
@ -114,6 +114,10 @@
|
||||
|
||||
function ask(field, text){
|
||||
if (confirm(text)) {
|
||||
setTimeout(() => {
|
||||
field.innerHTML = field.innerHTML.replace(`<span class="loading"></span>`, '');
|
||||
field.removeAttribute("disabled");
|
||||
}, 5000);
|
||||
return true;
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user