aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/styles/prosilver/template/ajax.js')
-rw-r--r--phpBB/styles/prosilver/template/ajax.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js
index 53dc8e1124..739648200b 100644
--- a/phpBB/styles/prosilver/template/ajax.js
+++ b/phpBB/styles/prosilver/template/ajax.js
@@ -56,7 +56,11 @@ $('[data-ajax]').each(function() {
if (ajax !== 'false')
{
fn = (ajax !== 'true') ? ajax : null;
- phpbb.ajaxify({selector: this}, $this.attr('data-refresh') !== undefined, fn);
+ phpbb.ajaxify({
+ selector: this,
+ refresh: $this.attr('data-refresh') !== undefined,
+ callback: fn
+ });
}
});
@@ -86,8 +90,9 @@ phpbb.ajaxify({
}
return true;
- }
-}, true);
+ },
+ refresh: true
+});