aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/adm/style/ajax.js')
-rw-r--r--phpBB/adm/style/ajax.js6
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);
}
});