Update
This commit is contained in:
@@ -47,6 +47,8 @@ function open_page(params) {
|
||||
EventListeners.Interval = []
|
||||
EventListeners.QRScanner.forEach(ev => ev.clear());
|
||||
EventListeners.QRScanner = []
|
||||
EventListeners.Custom.forEach(ev => ev());
|
||||
EventListeners.Custom = []
|
||||
if (SUB_LOGGED_IN != true && params != "login,setup") {
|
||||
PAGES["login"].index();
|
||||
return;
|
||||
|
||||
@@ -3,6 +3,7 @@ var EventListeners = {
|
||||
Timeout: [],
|
||||
Interval: [],
|
||||
QRScanner: [],
|
||||
Custom: [],
|
||||
};
|
||||
var urlParams = new URLSearchParams(location.search);
|
||||
var AC_BYPASS = false;
|
||||
|
||||
@@ -977,7 +977,7 @@ PAGES.pagos = {
|
||||
gastos: {}, // { id: monto }
|
||||
};
|
||||
var balance_real = 0;
|
||||
setInterval(() => {
|
||||
EventListeners.Interval.push(setInterval(() => {
|
||||
balance_real = 0;
|
||||
Object.values(SC_Personas).forEach((persona) => {
|
||||
balance_real += parseFloat(persona.Monedero_Balance || 0);
|
||||
@@ -986,7 +986,7 @@ PAGES.pagos = {
|
||||
balance_real.toFixed(2) + "€";
|
||||
document.getElementById(balance_total).style.color =
|
||||
balance_real >= 0 ? "white" : "#ffcccc";
|
||||
}, 1000);
|
||||
}, 1000));
|
||||
TS_IndexElement(
|
||||
"pagos",
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user