Browse Source

#50, #119, #120: Don't validate disable field

nghuuphuoc 11 years ago
parent
commit
d9ba6c9c2a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dist/js/bootstrapValidator.js
  2. 1 1
      dist/js/bootstrapValidator.min.js

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -378,7 +378,7 @@
         isValid: function() {
             var field, validatorName;
             for (field in this.results) {
-                if (!this.options.fields[field]['enabled']) {
+                if (this.options.fields[field] == null || !this.options.fields[field]['enabled']) {
                     continue;
                 }
 

File diff suppressed because it is too large
+ 1 - 1
dist/js/bootstrapValidator.min.js