Browse Source

#179: Auto parse the country from VAT number

nghuuphuoc 11 years ago
parent
commit
7ca01b1c40
3 changed files with 3 additions and 3 deletions
  1. 1 1
      dist/js/bootstrapValidator.js
  2. 1 1
      dist/js/bootstrapValidator.min.js
  3. 1 1
      src/js/validator/vat.js

+ 1 - 1
dist/js/bootstrapValidator.js

@@ -2409,7 +2409,7 @@
          */
         validate: function(validator, $field, options) {
             var value = $field.val();
-            if (value == '' || !options.country) {
+            if (value == '') {
                 return true;
             }
 

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


+ 1 - 1
src/js/validator/vat.js

@@ -17,7 +17,7 @@
          */
         validate: function(validator, $field, options) {
             var value = $field.val();
-            if (value == '' || !options.country) {
+            if (value == '') {
                 return true;
             }