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