From 4607fcd48115e88ab59dc7bc1414e59fb6bb7752 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Thu, 29 Nov 2012 09:10:15 -0500
Subject: [PATCH] - Bugfix: make sure load indicator gets hidden no matter what is selected in Interface Config.
---
interface/web/js/scrigo.js.php | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php
index ab31522..0369ded 100644
--- a/interface/web/js/scrigo.js.php
+++ b/interface/web/js/scrigo.js.php
@@ -51,15 +51,11 @@
}
function hideLoadIndicator() {
- jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {type : "get_use_loadindicator"}, function(data) {
- if(data.useloadindicator == "y"){
- requestsRunning -= 1;
- if(requestsRunning < 1) {
- requestsRunning = 0; // just for the case...
- if(indicatorCompleted == true) jQuery('#ajaxloader').fadeOut('fast', function() { jQuery('#ajaxloader').hide(); } );
- }
- }
- });
+ requestsRunning -= 1;
+ if(requestsRunning < 1) {
+ requestsRunning = 0; // just for the case...
+ if(indicatorCompleted == true) jQuery('#ajaxloader').fadeOut('fast', function() { jQuery('#ajaxloader').hide(); } );
+ }
}
function onAfterContentLoad() {
--
Gitblit v1.9.1