Small fixes

This commit is contained in:
jokob-sk
2024-08-22 20:02:18 +10:00
parent fa0e07a511
commit 01f8dc5f6b
5 changed files with 11 additions and 7 deletions

View File

@@ -1390,7 +1390,7 @@ input[readonly] {
opacity: 0.8;
background-color: #fff;
z-index: 99;
z-index: 1000;
}
.pa_spinner {
@@ -1403,7 +1403,7 @@ input[readonly] {
padding: 15px;
width: 200px;
background-color: #fff;
z-index: 100;
z-index: 1001;
}
#loadingSpinner

View File

@@ -399,6 +399,7 @@ function handle_locked_DB(data)
showSpinner()
setTimeout(function() {
console.warn("Database locked - reload")
location.reload();
}, 5000);
}
@@ -1153,8 +1154,9 @@ function clearCache() {
sessionStorage.clear();
localStorage.clear();
setTimeout(() => {
window.location.reload();
}, 500);
console.warn("clearChache called");
window.location.reload();
}, 500);
}
// -----------------------------------------------------------------------------
@@ -1291,6 +1293,7 @@ setTimeout(() => {
// page refresh if configured
const refreshTime = getSetting("UI_REFRESH");
if (refreshTime && refreshTime !== "0" && refreshTime !== "") {
console.log("Refreshing page becasue UI_REFRESH setting enabled.");
newTimerRefreshData(clearCache, parseInt(refreshTime)*1000);
}

View File

@@ -460,7 +460,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
// INPUT
console.log(codeName);
// console.log(codeName);
// Parse the setType JSON string into an object
let inputHtml = '';
@@ -795,6 +795,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
}
else
{
console.log("isAppInitialized() returned false, reloading in 3s");
// reload the page if not initialized to give time the background tasks to finish
setTimeout(() => {