diff --git a/index.html b/index.html index b842a37..185c98c 100644 --- a/index.html +++ b/index.html @@ -376,6 +376,7 @@ --> + @@ -1444,12 +1445,14 @@ Notas: document.getElementById(field_notas).value, }; var enc = SEA.encrypt(data, SECRET, (encrypted) => { + document.getElementById("actionStatus").style.display = "block" betterGunPut( gun.get(TABLE).get("materiales").get(mid), encrypted ); toastr.success("Guardado!"); setTimeout(() => { + document.getElementById("actionStatus").style.display = "none" setUrlHash("materiales"); }, 1500); }); @@ -1811,12 +1814,14 @@ markdown: document.getElementById(field_notas).value, }; var enc = SEA.encrypt(data, SECRET, (encrypted) => { + document.getElementById("actionStatus").style.display = "block" betterGunPut( gun.get(TABLE).get("personas").get(mid), encrypted ); toastr.success("Guardado!"); setTimeout(() => { + document.getElementById("actionStatus").style.display = "none" setUrlHash("personas"); }, 1500); }); @@ -2051,12 +2056,14 @@ .value.replace("%%", "Pedido"), }; var enc = SEA.encrypt(data, SECRET, (encrypted) => { + document.getElementById("actionStatus").style.display = "block" betterGunPut( gun.get(TABLE).get("supercafe").get(mid), encrypted ); toastr.success("Guardado!"); setTimeout(() => { + document.getElementById("actionStatus").style.display = "none" setUrlHash("supercafe"); }, 1500); }); @@ -2237,7 +2244,7 @@ document.getElementById(btn_Pagado).onclick = () => { window.event.cancelBubble = true; window.event.stopPropagation(); - + if (!confirm("¿Quieres marcar como pagado? - Se borrara la comanda y se actualizarán los puntos.")) {return} data.Estado = "Pagado"; betterGunPut( gun.get(TABLE).get("supercafe").get(data._key), @@ -2428,12 +2435,14 @@ .value.replace("%%", "por_leer"), }; var enc = SEA.encrypt(data, SECRET, (encrypted) => { + document.getElementById("actionStatus").style.display = "block" betterGunPut( gun.get(TABLE).get("notificaciones").get(mid), encrypted ); toastr.success("Guardado!"); setTimeout(() => { + document.getElementById("actionStatus").style.display = "none" setUrlHash("notificaciones"); }, 1500); }); diff --git a/static/ico/statusok.png b/static/ico/statusok.png new file mode 100644 index 0000000..f264c18 Binary files /dev/null and b/static/ico/statusok.png differ diff --git a/sw.js b/sw.js index 701a33e..e0bf8d1 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -var cacheName = 'telesec_2025-05-29_10'; +var cacheName = 'telesec_2025-05-30_1'; self.addEventListener('install', event => { event.waitUntil( @@ -51,6 +51,7 @@ self.addEventListener('install', event => { "static/ico/milk.png", "static/ico/preferences.png", "static/ico/sizes.png", + "static/ico/statusok.png", "static/ico/snowflake.png", "static/ico/tea_bag.png", "static/ico/thermometer2.png",