1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/10784] Do not show ajax overlay unless needed

PHPBB3-10784
This commit is contained in:
Marc Alexander
2012-04-11 23:29:47 +02:00
parent fd55c8664a
commit 7a9d9f97ef
2 changed files with 13 additions and 5 deletions

View File

@@ -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,