[ticket/10271] data-ajax="false" is now ignored.

PHPBB3-10271
This commit is contained in:
Callum Macrae 2011-10-22 16:37:35 +01:00 committed by Igor Wiedler
parent 95659ba92c
commit 8120023605
2 changed files with 10 additions and 4 deletions

View file

@ -74,8 +74,11 @@ phpbb.add_ajax_callback('row_delete', function(el) {
$('[data-ajax]').each(function() { $('[data-ajax]').each(function() {
var $this = $(this); var $this = $(this);
if ($this.data('ajax') !== 'false')
{
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null; var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn); phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
}
}); });

View file

@ -45,8 +45,11 @@ phpbb.add_ajax_callback('zebra', function(el, res) {
$('[data-ajax]').each(function() { $('[data-ajax]').each(function() {
var $this = $(this); var $this = $(this);
if ($this.data('ajax') !== 'false')
{
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null; var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn); phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
}
}); });