Browse Source

Merge branch 'master' of https://github.com/smeagol74/bootstrapvalidator into smeagol74-master

Conflicts:
	src/js/bootstrapValidator.js
nghuuphuoc 11 years ago
parent
commit
4a856eb7f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/bootstrapValidator.js

+ 1 - 1
src/js/bootstrapValidator.js

@@ -793,7 +793,7 @@
                                         var v = $(this).attr('data-bv-validator');
                                         return $field.data('bv.result.' + v) != that.STATUS_VALID;
                                     }).length == 0;
-                    this.disableSubmitButtons(!isValidField);
+                    this.disableSubmitButtons(this.isValid() ? false : true);
                     if ($icon) {
                         $icon
                             .removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).removeClass(this.options.feedbackIcons.valid)