aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2011-10-22 16:37:35 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-03-31 02:09:20 +0200
commit81200236052333f88bbf6ecf0c2198080481c07a (patch)
tree2018395b9a5820530b069e45213a3c321a6571e0 /phpBB
parent95659ba92c01a3cf4c654568e9a59ba554558a7e (diff)
downloadforums-81200236052333f88bbf6ecf0c2198080481c07a.tar
forums-81200236052333f88bbf6ecf0c2198080481c07a.tar.gz
forums-81200236052333f88bbf6ecf0c2198080481c07a.tar.bz2
forums-81200236052333f88bbf6ecf0c2198080481c07a.tar.xz
forums-81200236052333f88bbf6ecf0c2198080481c07a.zip
[ticket/10271] data-ajax="false" is now ignored.
PHPBB3-10271
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/adm/style/ajax.js7
-rw-r--r--phpBB/styles/prosilver/template/ajax.js7
2 files changed, 10 insertions, 4 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js
index 2fdabd2a80..cb3289b936 100644
--- a/phpBB/adm/style/ajax.js
+++ b/phpBB/adm/style/ajax.js
@@ -74,8 +74,11 @@ phpbb.add_ajax_callback('row_delete', function(el) {
$('[data-ajax]').each(function() {
var $this = $(this);
- var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
- phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
+ if ($this.data('ajax') !== 'false')
+ {
+ var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
+ phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
+ }
});
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index 4fd4cd32f5..ca720f77eb 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -45,8 +45,11 @@ phpbb.add_ajax_callback('zebra', function(el, res) {
$('[data-ajax]').each(function() {
var $this = $(this);
- var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
- phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
+ if ($this.data('ajax') !== 'false')
+ {
+ var fn = ($this.data('ajax') !== 'true') ? $this.data('ajax') : null;
+ phpbb.ajaxify({selector: this}, $this.data('refresh') !== undefined, fn);
+ }
});