diff options
author | Marc Alexander <admin@m-a-styles.de> | 2012-04-11 23:29:47 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2012-04-12 21:03:47 +0200 |
commit | 7a9d9f97ef83b61ce155a09c1e75c90f4c533f3f (patch) | |
tree | f06931206c85d5995a1a2832205af2d875a5c7f6 /phpBB/assets | |
parent | fd55c8664a046258c12e8a207d44340010155627 (diff) | |
download | forums-7a9d9f97ef83b61ce155a09c1e75c90f4c533f3f.tar forums-7a9d9f97ef83b61ce155a09c1e75c90f4c533f3f.tar.gz forums-7a9d9f97ef83b61ce155a09c1e75c90f4c533f3f.tar.bz2 forums-7a9d9f97ef83b61ce155a09c1e75c90f4c533f3f.tar.xz forums-7a9d9f97ef83b61ce155a09c1e75c90f4c533f3f.zip |
[ticket/10784] Do not show ajax overlay unless needed
PHPBB3-10784
Diffstat (limited to 'phpBB/assets')
-rw-r--r-- | phpBB/assets/javascript/core.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index c41edfa145..958b6c9ff6 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -245,6 +245,7 @@ phpbb.ajaxify = function(options) { var elements = $(options.selector), refresh = options.refresh, callback = options.callback, + overlay = (typeof options.overlay !== 'undefined') ? options.overlay : true, is_form = elements.is('form'), event_name = is_form ? 'submit' : 'click'; @@ -382,7 +383,10 @@ phpbb.ajaxify = function(options) { return; } - phpbb.loading_alert(); + if (overlay) + { + phpbb.loading_alert(); + } $.ajax({ url: action, |