浏览代码

#57 [v0.5.0-dev]: Fix the issue caused by setting validator opts via HTML attrs

phuoc 11 年之前
父节点
当前提交
efcc86bd61
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      dist/js/bootstrapValidator.js
  2. 1 1
      dist/js/bootstrapValidator.min.js
  3. 1 1
      src/js/bootstrapValidator.js

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -137,7 +137,7 @@
         live: 'enabled',
 
         // Map the field name with validator rules
-        fields: null
+        fields: {}
     };
 
     BootstrapValidator.prototype = {

文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js


+ 1 - 1
src/js/bootstrapValidator.js

@@ -136,7 +136,7 @@
         live: 'enabled',
 
         // Map the field name with validator rules
-        fields: null
+        fields: {}
     };
 
     BootstrapValidator.prototype = {