diff options
author | Callum Macrae <callum@lynxphp.com> | 2011-11-18 17:33:22 +0000 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2012-03-31 02:09:22 +0200 |
commit | 81e357beef9e1e82607e59d59deba1cf54af4257 (patch) | |
tree | cda533b5966afb2e236758788ef1d5b632f02154 /phpBB/adm/style | |
parent | 2189efadc624deb515df1ba04c232724a2f8eae3 (diff) | |
download | forums-81e357beef9e1e82607e59d59deba1cf54af4257.tar forums-81e357beef9e1e82607e59d59deba1cf54af4257.tar.gz forums-81e357beef9e1e82607e59d59deba1cf54af4257.tar.bz2 forums-81e357beef9e1e82607e59d59deba1cf54af4257.tar.xz forums-81e357beef9e1e82607e59d59deba1cf54af4257.zip |
[ticket/10272] Removed some duplication calls to $.fn.data.
PHPBB3-10272
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r-- | phpBB/adm/style/ajax.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js index 88c28fe071..902e072dda 100644 --- a/phpBB/adm/style/ajax.js +++ b/phpBB/adm/style/ajax.js @@ -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); } }); |