浏览代码

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

phuoc 11 年之前
父节点
当前提交
4d022725a6
共有 4 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      dist/js/bootstrapValidator.js
  2. 1 1
      dist/js/bootstrapValidator.min.js
  3. 1 1
      src/js/validator/different.js
  4. 1 1
      src/js/validator/identical.js

+ 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;

文件差异内容过多而无法显示
+ 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;