vendor/assets/javascripts/bootstrapValidator.js in bootstrap-validator-rails-0.5.0 vs vendor/assets/javascripts/bootstrapValidator.js in bootstrap-validator-rails-0.5.0.1

- old
+ new

@@ -426,9 +426,13 @@ _submit: function() { var isValid = this.isValid(), eventType = isValid ? 'success.form.bv' : 'error.form.bv', e = $.Event(eventType); + if (isValid && this.$form.data('remote') && $.rails !== undefined) { + return; + } + this.$form.trigger(e); // Call default handler // Check if whether the submit button is clicked if (this.$submitButton) {