mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/10271] data-ajax="false" is now ignored.
PHPBB3-10271
This commit is contained in:
parent
95659ba92c
commit
8120023605
2 changed files with 10 additions and 4 deletions
|
@ -74,8 +74,11 @@ phpbb.add_ajax_callback('row_delete', function(el) {
|
|||
|
||||
$('[data-ajax]').each(function() {
|
||||
var $this = $(this);
|
||||
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
|
||||
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
|
||||
if ($this.data('ajax') !== 'false')
|
||||
{
|
||||
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
|
||||
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -45,8 +45,11 @@ phpbb.add_ajax_callback('zebra', function(el, res) {
|
|||
|
||||
$('[data-ajax]').each(function() {
|
||||
var $this = $(this);
|
||||
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
|
||||
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
|
||||
if ($this.data('ajax') !== 'false')
|
||||
{
|
||||
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
|
||||
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue