Browse Source

#136: Update identical and different validators due to the changes of updateStatus() method

phuoc 11 years ago
parent
commit
4d022725a6

+ 2 - 2
dist/js/bootstrapValidator.js

@@ -1155,7 +1155,7 @@
             }
 
             if (value != compareWith.val()) {
-                validator.updateStatus(compareWith, validator.STATUS_VALID, 'different');
+                validator.updateStatus(options.field, validator.STATUS_VALID, 'different');
                 return true;
             } else {
                 return false;
@@ -1295,7 +1295,7 @@
             }
 
             if (value == compareWith.val()) {
-                validator.updateStatus(compareWith, validator.STATUS_VALID, 'identical');
+                validator.updateStatus(options.field, validator.STATUS_VALID, 'identical');
                 return true;
             } else {
                 return false;

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


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

@@ -24,7 +24,7 @@
             }
 
             if (value != compareWith.val()) {
-                validator.updateStatus(compareWith, validator.STATUS_VALID, 'different');
+                validator.updateStatus(options.field, validator.STATUS_VALID, 'different');
                 return true;
             } else {
                 return false;

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

@@ -23,7 +23,7 @@
             }
 
             if (value == compareWith.val()) {
-                validator.updateStatus(compareWith, validator.STATUS_VALID, 'identical');
+                validator.updateStatus(options.field, validator.STATUS_VALID, 'identical');
                 return true;
             } else {
                 return false;