1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 20:40:24 +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

@@ -241,9 +241,12 @@ phpbb.parse_querystring = function(string) {
* three parameters: the element that the event was evoked from, the JSON
* that was returned and (if it is a form) the form action.
*/
phpbb.ajaxify = function(options, refresh, callback) {
var elements = $(options.selector);
var is_form = elements.is('form');
phpbb.ajaxify = function(options) {
var elements = $(options.selector),
refresh = options.refresh,
callback = options.callback,
is_form = elements.is('form');
if (is_form)
{
elements = elements.find('input:submit');