Browse Source

#385, #387: Provide the default error messages; Support I18n

phuoc 11 years ago
parent
commit
ac70d80a44

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -343,7 +343,7 @@
                 case (!!this.options.fields[field].message):
                     return this.options.fields[field].message;
                 default:
-                    this.options.message
+                    return this.options.message;
             }
         },
 

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


+ 1 - 1
src/js/bootstrapValidator.js

@@ -342,7 +342,7 @@
                 case (!!this.options.fields[field].message):
                     return this.options.fields[field].message;
                 default:
-                    this.options.message
+                    return this.options.message;
             }
         },