|
|
@@ -2,7 +2,7 @@
|
|
|
* BootstrapValidator (http://bootstrapvalidator.com)
|
|
|
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
|
|
|
*
|
|
|
- * @version v0.5.2-dev, built on 2014-09-02 11:09:14 PM
|
|
|
+ * @version v0.5.2-dev, built on 2014-09-05 2:39:38 PM
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
|
@@ -2570,10 +2570,11 @@
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- if (value === compareWith.val()) {
|
|
|
+ var compareValue = compareWith.val();
|
|
|
+ if (value === compareValue) {
|
|
|
isValid = false;
|
|
|
- } else {
|
|
|
- validator.updateStatus(fields[i], validator.STATUS_VALID, 'different');
|
|
|
+ } else if (compareValue !== '') {
|
|
|
+ validator.updateStatus(compareWith, validator.STATUS_VALID, 'different');
|
|
|
}
|
|
|
}
|
|
|
|