Browse Source

Merge pull request #2944 from guodong/master

add form data as onSuccess callback param
pull/2902/merge
Jack Lukic 9 years ago
parent
commit
800132a278
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/behaviors/form.js

2
src/definitions/behaviors/form.js

@ -698,7 +698,7 @@ $.fn.form = function(parameters) {
if( module.is.valid() ) {
module.debug('Form has no validation errors, submitting');
module.set.success();
return settings.onSuccess.call(element, event);
return settings.onSuccess.call(element, module.get.values(), event);
}
else {
module.debug('Form has errors');

Loading…
Cancel
Save