Skip to content

Commit

Permalink
[ticket/10272] Removed some duplication calls to $.fn.data.
Browse files Browse the repository at this point in the history
PHPBB3-10272
  • Loading branch information
callumacrae authored and p committed Dec 24, 2011
1 parent 4e8436f commit bfac81d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions phpBB/adm/style/ajax.js
Expand Up @@ -72,10 +72,10 @@ phpbb.add_ajax_callback('row_delete', function() {


$('[data-ajax]').each(function() {
var $this = $(this);
if ($this.data('ajax') !== 'false')
var $this = $(this), ajax = $this.data('ajax');
if (ajax !== 'false')
{
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
var fn = (ajax !== 'true') ? ajax : null;
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
}
});
Expand Down
6 changes: 3 additions & 3 deletions phpBB/styles/prosilver/template/ajax.js
Expand Up @@ -44,10 +44,10 @@ phpbb.add_ajax_callback('zebra', function(res) {


$('[data-ajax]').each(function() {
var $this = $(this);
if ($this.data('ajax') !== 'false')
var $this = $(this), ajax = $this.data('ajax');
if (ajax !== 'false')
{
var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
var fn = (ajax !== 'true') ? ajax : null;
phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
}
});
Expand Down

0 comments on commit bfac81d

Please sign in to comment.