Retry support for INTRNT #667

This commit is contained in:
jokob-sk
2024-05-25 12:18:59 +10:00
parent fb88f5f722
commit 2f4423481d
7 changed files with 127 additions and 52 deletions

View File

@@ -592,8 +592,10 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) {
}
// init finished
setupSmoothScrolling()
hideSpinner()
}
@@ -840,6 +842,8 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) {
// -----------------------------------------------------------------------------
function handleLoadingDialog()
{
// check if config file has been updated
$.get('api/app_state.json?nocache=' + Date.now(), function(appState) {
fileModificationTime = <?php echo filemtime($confPath)*1000;?>;
@@ -865,7 +869,8 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) {
// check if the app is initialized and hide the spinner
if(isAppInitialized())
{
hideSpinner()
// init page
getData()
// reload page if outdated information might be displayed
if(secondsSincePageLoad() > 3)
@@ -892,8 +897,6 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) {
}
getData()
</script>
<script defer>