app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.12.2 vs app/assets/javascripts/semantic-ui/modules/behavior/form.js in semantic-ui-rails-0.12.4
- old
+ new
@@ -319,10 +319,10 @@
module.debug('Form has no validation errors, submitting');
$module
.removeClass(className.error)
.addClass(className.success)
;
- $.proxy(settings.onSuccess, this)(event);
+ return $.proxy(settings.onSuccess, this)(event);
}
else {
module.debug('Form has errors');
$module.addClass(className.error);
if(!settings.inline) {