update
This commit is contained in:
@@ -32,7 +32,6 @@ if (urlParams.get("login") != null) {
|
|||||||
urlParams.get("login").split(":")[1]
|
urlParams.get("login").split(":")[1]
|
||||||
);
|
);
|
||||||
//location.search = "";
|
//location.search = "";
|
||||||
SetPages()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function open_page(params) {
|
function open_page(params) {
|
||||||
|
|||||||
@@ -1034,7 +1034,6 @@ function SetPages() {
|
|||||||
document.getElementById("appendApps2").append(a);
|
document.getElementById("appendApps2").append(a);
|
||||||
}
|
}
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
SetPages();
|
|
||||||
document.getElementById("appendApps").style.display = "none";
|
document.getElementById("appendApps").style.display = "none";
|
||||||
});
|
});
|
||||||
var Booted = false;
|
var Booted = false;
|
||||||
@@ -1047,6 +1046,7 @@ setInterval(() => {
|
|||||||
document.getElementById("loading").style.display = "none";
|
document.getElementById("loading").style.display = "none";
|
||||||
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
|
toastr.error("Sin internet! Los cambios se sincronizarán cuando te vuelvas a conectar.")
|
||||||
if (!SUB_LOGGED_IN) {
|
if (!SUB_LOGGED_IN) {
|
||||||
|
SetPages()
|
||||||
open_page("login");
|
open_page("login");
|
||||||
} else {
|
} else {
|
||||||
open_page(location.hash.replace("#", ""));
|
open_page(location.hash.replace("#", ""));
|
||||||
@@ -1059,6 +1059,7 @@ setInterval(() => {
|
|||||||
open_page("login");
|
open_page("login");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
SetPages()
|
||||||
open_page(location.hash.replace("#", ""));
|
open_page(location.hash.replace("#", ""));
|
||||||
}
|
}
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ PAGES.login = {
|
|||||||
SUB_LOGGED_IN_ID = document.getElementById(field_persona).value
|
SUB_LOGGED_IN_ID = document.getElementById(field_persona).value
|
||||||
SUB_LOGGED_IN_DETAILS = SC_Personas[SUB_LOGGED_IN_ID]
|
SUB_LOGGED_IN_DETAILS = SC_Personas[SUB_LOGGED_IN_ID]
|
||||||
SUB_LOGGED_IN = true
|
SUB_LOGGED_IN = true
|
||||||
|
SetPages()
|
||||||
if (location.hash.replace("#", "").startsWith("login")) {
|
if (location.hash.replace("#", "").startsWith("login")) {
|
||||||
open_page("index");
|
open_page("index");
|
||||||
setUrlHash("index")
|
setUrlHash("index")
|
||||||
|
|||||||
Reference in New Issue
Block a user