aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets/javascript
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2015-07-04 12:40:01 +0700
committerrxu <rxu@mail.ru>2015-07-04 14:36:28 +0700
commit73ba70e98ceb21126cd9ed7976df72533ed36ba7 (patch)
tree751c4844f0811105be188a87b8081b2823dff7fa /phpBB/assets/javascript
parent60b4d5132f2023ade224676a6729b5f0847c4110 (diff)
downloadforums-73ba70e98ceb21126cd9ed7976df72533ed36ba7.tar
forums-73ba70e98ceb21126cd9ed7976df72533ed36ba7.tar.gz
forums-73ba70e98ceb21126cd9ed7976df72533ed36ba7.tar.bz2
forums-73ba70e98ceb21126cd9ed7976df72533ed36ba7.tar.xz
forums-73ba70e98ceb21126cd9ed7976df72533ed36ba7.zip
[ticket/13984] Fix the call of Ajax loading indicator
PHPBB3-13984
Diffstat (limited to 'phpBB/assets/javascript')
-rw-r--r--phpBB/assets/javascript/core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 953b6be0bd..36e881f5fd 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -394,8 +394,11 @@ phpbb.ajaxify = function(options) {
error: errorHandler,
cache: false
});
+
request.always(function() {
- $loadingIndicator.fadeOut(phpbb.alertTime);
+ if ($loadingIndicator && $loadingIndicator.is(':visible')) {
+ $loadingIndicator.fadeOut(phpbb.alertTime);
+ }
});
};