1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/ajax] Make phpbb.ajaxify signature use single object (more explicit)

PHPBB3-10270
This commit is contained in:
Igor Wiedler
2012-02-08 19:56:25 +01:00
parent 1fc26eb1d5
commit 7ed2cbef75
3 changed files with 35 additions and 11 deletions

View File

@@ -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
});