重构代码:支持两个控件比较
This commit is contained in:
parent
80e8055d67
commit
c0cb4b77fd
|
@ -39,7 +39,8 @@
|
||||||
},
|
},
|
||||||
escapeCssMeta: function (string) {
|
escapeCssMeta: function (string) {
|
||||||
return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1");
|
return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g, "\\$1");
|
||||||
}
|
},
|
||||||
|
settings: $.validator.defaults
|
||||||
}, this.defaults(), options)
|
}, this.defaults(), options)
|
||||||
this.$element.on('input.lgb.validate', this.options.childClass, function () {
|
this.$element.on('input.lgb.validate', this.options.childClass, function () {
|
||||||
if (!that.validElement(this)) $(this).lgbTooltip('show');
|
if (!that.validElement(this)) $(this).lgbTooltip('show');
|
||||||
|
|
Loading…
Reference in New Issue