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:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user