mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/10272] Removed some duplication calls to $.fn.data.
PHPBB3-10272
This commit is contained in:
parent
2189efadc6
commit
81e357beef
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue