fix bulk broadcasting message

This commit is contained in:
iBNu Maksum
2025-02-04 15:13:42 +07:00
parent 3386b17b1b
commit 8d9919afa7
5 changed files with 136 additions and 67 deletions

View File

@ -160,15 +160,16 @@
});
function ask(field, text){
var txt = field.innerHTML;
if (confirm(text)) {
setTimeout(() => {
field.innerHTML = field.innerHTML.replace(`<span class="loading"></span>`, '');
field.innerHTML = field.innerHTML.replace(`<span class="loading"></span>`, txt);
field.removeAttribute("disabled");
}, 5000);
return true;
} else {
setTimeout(() => {
field.innerHTML = field.innerHTML.replace(`<span class="loading"></span>`, '');
field.innerHTML = field.innerHTML.replace(`<span class="loading"></span>`, txt);
field.removeAttribute("disabled");
}, 500);
return false;