Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-07-22 10:17:18 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-07-22 10:17:18 +0400
commit2949359cfb2e2718aa50236148e9f82e4787d0de (patch)
tree163170390c20e3bff92bccfb9756868debbc289b /plugins/CoreHome/javascripts/corehome.js
parent26e73549e33322b2ef00940aa3efc3e6284298a6 (diff)
refs #5406 only display an error message if the status code was 4xx or 5xx. Otherwise switching to another page while widgets are still loading will display this error message. The status is not abort but error in such a case
Diffstat (limited to 'plugins/CoreHome/javascripts/corehome.js')
-rwxr-xr-xplugins/CoreHome/javascripts/corehome.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/corehome.js b/plugins/CoreHome/javascripts/corehome.js
index e1e29b7770..5bddc23f9e 100755
--- a/plugins/CoreHome/javascripts/corehome.js
+++ b/plugins/CoreHome/javascripts/corehome.js
@@ -154,7 +154,7 @@
// scroll to report
piwikHelper.lazyScrollTo(report, 400);
}, function (deferred, status) {
- if (status == 'abort') {
+ if (status == 'abort' || !deferred || deferred.status < 400 || deferred.status >= 600) {
return;
}