mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-18 15:41:26 +02:00
Merge remote-tracking branch 'marc1706/ticket/10784' into develop
* marc1706/ticket/10784: [ticket/10784] Do not show ajax overlay unless needed
This commit is contained in:
@@ -28,7 +28,8 @@ phpbb.add_ajax_callback('forum_down', function() {
|
|||||||
|
|
||||||
phpbb.ajaxify({
|
phpbb.ajaxify({
|
||||||
selector: el.parents('span').siblings('.up').children('a'),
|
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({
|
phpbb.ajaxify({
|
||||||
selector: tr.prev().find('.down').children('a'),
|
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({
|
phpbb.ajaxify({
|
||||||
selector: el.parents('span').siblings('.down').children('a'),
|
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({
|
phpbb.ajaxify({
|
||||||
selector: tr.next().find('.up').children('a'),
|
selector: tr.next().find('.up').children('a'),
|
||||||
callback: 'forum_up'
|
callback: 'forum_up',
|
||||||
|
overlay: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -245,6 +245,7 @@ phpbb.ajaxify = function(options) {
|
|||||||
var elements = $(options.selector),
|
var elements = $(options.selector),
|
||||||
refresh = options.refresh,
|
refresh = options.refresh,
|
||||||
callback = options.callback,
|
callback = options.callback,
|
||||||
|
overlay = (typeof options.overlay !== 'undefined') ? options.overlay : true,
|
||||||
is_form = elements.is('form'),
|
is_form = elements.is('form'),
|
||||||
event_name = is_form ? 'submit' : 'click';
|
event_name = is_form ? 'submit' : 'click';
|
||||||
|
|
||||||
@@ -382,7 +383,10 @@ phpbb.ajaxify = function(options) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
phpbb.loading_alert();
|
if (overlay)
|
||||||
|
{
|
||||||
|
phpbb.loading_alert();
|
||||||
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: action,
|
url: action,
|
||||||
|
Reference in New Issue
Block a user