diff --git a/ui/ui/refill.tpl b/ui/ui/refill.tpl
index b0e0ac4a..30cb2fe7 100644
--- a/ui/ui/refill.tpl
+++ b/ui/ui/refill.tpl
@@ -24,7 +24,7 @@
diff --git a/ui/ui/routers.tpl b/ui/ui/routers.tpl
index 58b63aef..5ea6722c 100644
--- a/ui/ui/routers.tpl
+++ b/ui/ui/routers.tpl
@@ -85,7 +85,7 @@
{Lang::T('Edit')}
{$ds['id']} |
diff --git a/ui/ui/sections/footer.tpl b/ui/ui/sections/footer.tpl
index 6059d11c..e183859e 100644
--- a/ui/ui/sections/footer.tpl
+++ b/ui/ui/sections/footer.tpl
@@ -88,9 +88,9 @@
$(this).html(
`
`
);
- // setTimeout(() => {
- // $(this).prop("disabled", true);
- // }, 100);
+ setTimeout(() => {
+ $(this).prop("disabled", true);
+ }, 100);
}, false);
} else {
if (el.attachEvent) { // IE before version 9
@@ -98,9 +98,9 @@
$(this).html(
`
`
);
- // setTimeout(() => {
- // $(this).prop("disabled", true);
- // }, 100);
+ setTimeout(() => {
+ $(this).prop("disabled", true);
+ }, 100);
});
}
}
@@ -112,6 +112,18 @@
}, 500);
});
+ function ask(field, text){
+ if (confirm(text)) {
+ return true;
+ } else {
+ setTimeout(() => {
+ field.innerHTML = field.innerHTML.replace(`
`, '');
+ field.removeAttribute("disabled");
+ }, 500);
+ return false;
+ }
+ }
+
function apiGetText(){
var el = listAttApi[posAttApi];
$.get(el.getAttribute('api-get-text'), function(data) {
diff --git a/ui/ui/voucher-add.tpl b/ui/ui/voucher-add.tpl
index 4e579681..232ebd6f 100644
--- a/ui/ui/voucher-add.tpl
+++ b/ui/ui/voucher-add.tpl
@@ -73,7 +73,7 @@