ソースを参照

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

phuoc 11 年 前
コミット
efcc86bd61

+ 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 = {