移除tipso的验证后,简化代码
This commit is contained in:
parent
4c8f1e0689
commit
d592b945ea
|
@ -30,12 +30,7 @@
|
|||
$('#' + this.options.modal).on('show.bs.modal', function (e) {
|
||||
if (that.options.validateForm && that.options.validateForm.constructor === String) {
|
||||
var v = $('#' + that.options.validateForm);
|
||||
var vf = v.validate();
|
||||
vf.currentElements.each(function () {
|
||||
var $this = $(this);
|
||||
if ($this.hasClass('tipso_style')) $this.tipso('hide').tipso('destroy');
|
||||
})
|
||||
vf.resetForm();
|
||||
v.validate().resetForm();
|
||||
v.find('.has-error, .has-success').removeClass("has-error has-success");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue