From add7cda070b9dda493ae5a8a4ed7cc38cd91adda Mon Sep 17 00:00:00 2001 From: guodong Date: Wed, 2 Sep 2015 09:56:37 +0800 Subject: [PATCH] add form data as onSuccess callback param --- src/definitions/behaviors/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index e19bcab85..5a2c02d4b 100644 --- a/src/definitions/behaviors/form.js +++ b/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');