diff --git a/client/scripts/custom.js.php b/client/scripts/custom.js.php index c7744af..d847c5b 100644 --- a/client/scripts/custom.js.php +++ b/client/scripts/custom.js.php @@ -13,6 +13,7 @@ var showLoader = function() { if (loaderCount < 1) { $('#preloader').removeClass('preloader-hide'); loaderCount = 0; + log('Loader shown'); } loaderCount ++; } diff --git a/client/scripts/database.js b/client/scripts/database.js index 0bdce8e..a0d2db4 100644 --- a/client/scripts/database.js +++ b/client/scripts/database.js @@ -516,6 +516,7 @@ function sync() { onAfterSync(); } removeSyncInfoToPreloader(); + showLoader(); runPageScript(); resolve(); } diff --git a/server/scripts/planning.js b/server/scripts/planning.js index fa1e8b7..1a14ab7 100644 --- a/server/scripts/planning.js +++ b/server/scripts/planning.js @@ -68,6 +68,7 @@ function selectChange() { if (typeof siteScript === 'function') { history.replaceState(null, '', '?year=' + val); + showLoader(); siteScript(); } } diff --git a/server/scripts/planning_edit.js b/server/scripts/planning_edit.js index 43c4e69..1e9dcbd 100644 --- a/server/scripts/planning_edit.js +++ b/server/scripts/planning_edit.js @@ -261,6 +261,7 @@ function selectChange() { if (typeof siteScript === 'function') { history.replaceState(null, '', '?year=' + val); + showLoader(); siteScript(); } } diff --git a/server/scripts/planning_list.js b/server/scripts/planning_list.js index 0cda710..bfdd92a 100644 --- a/server/scripts/planning_list.js +++ b/server/scripts/planning_list.js @@ -10,6 +10,7 @@ function selectChange() { if (typeof siteScript === 'function') { history.replaceState(null, '', '?year=' + val); + showLoader(); siteScript(); } } diff --git a/server/scripts/planning_view.js b/server/scripts/planning_view.js index c1da637..a36ee7d 100644 --- a/server/scripts/planning_view.js +++ b/server/scripts/planning_view.js @@ -3,6 +3,7 @@ function selectChange() { if (typeof siteScript === 'function') { history.replaceState(null, '', '?year=' + val); + showLoader(); siteScript(); } } diff --git a/server/scripts/rank.js b/server/scripts/rank.js index 847bb62..3c412dd 100644 --- a/server/scripts/rank.js +++ b/server/scripts/rank.js @@ -175,7 +175,8 @@ async function selectChange(callSiteScript = true) { $('#input-jugstrict').prop('checked', jugstrict); if (callSiteScript && (typeof siteScript === 'function')) { - history.replaceState(null, '', '?type=' + type + '&year=' + year) + history.replaceState(null, '', '?type=' + type + '&year=' + year); + showLoader(); siteScript(); } } @@ -187,6 +188,7 @@ function buttonShowPressed() { if ($('#input-jugend').prop('checked')) chboxes += '&jugend=on' if ($('#input-jugstrict').prop('checked')) chboxes += '&jugstrict=on' history.replaceState(null, '', '?type=user&from=' + $('#input-from').val() + "&to=" + $('#input-to').val() + chboxes) + showLoader(); siteScript(); } } diff --git a/server/scripts/regattas.js b/server/scripts/regattas.js index 3c667e6..f486889 100644 --- a/server/scripts/regattas.js +++ b/server/scripts/regattas.js @@ -14,6 +14,7 @@ function selectChange(callSiteScript = true) { if (callSiteScript && (typeof siteScript === 'function')) { history.replaceState(null, '', '?year=' + val); + showLoader(); siteScript(); } } @@ -21,7 +22,8 @@ function selectChange(callSiteScript = true) { function buttonShowPressed() { if (typeof siteScript === 'function') { - history.replaceState(null, '', '?year=user&from=' + $('#input-from').val() + "&to=" + $('#input-to').val()) + history.replaceState(null, '', '?year=user&from=' + $('#input-from').val() + "&to=" + $('#input-to').val()); + showLoader(); siteScript(); } }