|
@@ -2,7 +2,7 @@
|
|
|
* BootstrapValidator (http://bootstrapvalidator.com)
|
|
* BootstrapValidator (http://bootstrapvalidator.com)
|
|
|
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
|
|
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
|
|
|
*
|
|
*
|
|
|
- * @version v0.5.2-dev, built on 2014-08-24 4:09:31 PM
|
|
|
|
|
|
|
+ * @version v0.5.2-dev, built on 2014-08-24 4:21:22 PM
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
* @license MIT
|
|
@@ -775,9 +775,12 @@
|
|
|
|
|
|
|
|
// Don't validate field if it is already done
|
|
// Don't validate field if it is already done
|
|
|
var result = $field.data('bv.result.' + validatorName);
|
|
var result = $field.data('bv.result.' + validatorName);
|
|
|
- if (result === this.STATUS_VALID || result === this.STATUS_INVALID || validators[validatorName].enabled === false) {
|
|
|
|
|
|
|
+ if (result === this.STATUS_VALID || result === this.STATUS_INVALID) {
|
|
|
this._onFieldValidated($field, validatorName);
|
|
this._onFieldValidated($field, validatorName);
|
|
|
continue;
|
|
continue;
|
|
|
|
|
+ } else if (validators[validatorName].enabled === false) {
|
|
|
|
|
+ this.updateStatus(updateAll ? field : $field, this.STATUS_VALID, validatorName);
|
|
|
|
|
+ continue;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$field.data('bv.result.' + validatorName, this.STATUS_VALIDATING);
|
|
$field.data('bv.result.' + validatorName, this.STATUS_VALIDATING);
|