Browse Source

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

phuoc 11 years ago
parent
commit
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 = {

File diff suppressed because it is too large
+ 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 = {