fix button

This commit is contained in:
Naiel
2025-06-10 11:11:57 +02:00
committed by GitHub
parent 9d7aea2d55
commit 8dad39c360

View File

@@ -2284,6 +2284,18 @@
toastr.success("Guardado!"); 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 = () => { document.getElementById(btn_Pagado).onclick = () => {
window.event.cancelBubble = true; window.event.cancelBubble = true;
window.event.stopPropagation(); window.event.stopPropagation();