From 8dad39c3604e313f3ae98ea2a401cfccf6fb441e Mon Sep 17 00:00:00 2001 From: Naiel <109038805+naielv@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:11:57 +0200 Subject: [PATCH] fix button --- index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.html b/index.html index 0d9161b..75e2e83 100644 --- a/index.html +++ b/index.html @@ -2284,6 +2284,18 @@ toastr.success("Guardado!"); }); }; + document.getElementById(btn_Deuda).onclick = () => { + window.event.cancelBubble = true; + window.event.stopPropagation(); + data.Estado = "Deuda"; + var enc = SEA.encrypt(data, SECRET, (encrypted) => { + betterGunPut( + gun.get(TABLE).get("supercafe").get(data._key), + encrypted + ); + toastr.success("Guardado!"); + }); + }; document.getElementById(btn_Pagado).onclick = () => { window.event.cancelBubble = true; window.event.stopPropagation();