ソースを参照

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

nghuuphuoc 11 年 前
コミット
d9ba6c9c2a
2 ファイル変更2 行追加2 行削除
  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;
                 }
 

ファイルの差分が大きいため隠しています
+ 1 - 1
dist/js/bootstrapValidator.min.js