[jQuery] Form Plugin - Reference to the form in callbacks
Hi,
I needed access to the form that's being submitted in the
options.success() function (in order to hide the form after successful
submission).
I ended up modifying line 222 in jquery.form.js. I added $form as the
third argument for all callbacks, like so:
options.success = function(data, status) {
for (var i=0, max=callbacks.length; i < max; i++)
callbacks[i](data, status, $form); // added $form as third argument.
};
Is there a better way of accessing the form from the callbacks or
would the plugin developer(s) consider adding this or another similar
modification to the code?
Joonas