Browse Source

Fixes #541, onSuccess does not return value of callback

pull/592/head
jlukic 10 years ago
parent
commit
823244af1a
1 changed files with 1 additions and 1 deletions
  1. 2
      src/modules/behavior/form.js

2
src/modules/behavior/form.js

@ -321,7 +321,7 @@ $.fn.form = function(fields, parameters) {
.removeClass(className.error)
.addClass(className.success)
;
$.proxy(settings.onSuccess, this)(event);
return $.proxy(settings.onSuccess, this)(event);
}
else {
module.debug('Form has errors');

Loading…
Cancel
Save