1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01: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

@ -28,7 +28,8 @@ phpbb.add_ajax_callback('forum_down', function() {
phpbb.ajaxify({
selector: el.parents('span').siblings('.up').children('a'),
callback: 'forum_up'
callback: 'forum_up',
overlay: false
});
}
@ -43,7 +44,8 @@ phpbb.add_ajax_callback('forum_down', function() {
phpbb.ajaxify({
selector: tr.prev().find('.down').children('a'),
callback: 'forum_down'
callback: 'forum_down',
overlay: false
});
}
});
@ -61,7 +63,8 @@ phpbb.add_ajax_callback('forum_up', function() {
phpbb.ajaxify({
selector: el.parents('span').siblings('.down').children('a'),
callback: 'forum_down'
callback: 'forum_down',
overlay: false
});
}
@ -76,7 +79,8 @@ phpbb.add_ajax_callback('forum_up', function() {
phpbb.ajaxify({
selector: tr.next().find('.up').children('a'),
callback: 'forum_up'
callback: 'forum_up',
overlay: false
});
}
});

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,