From d592b945ea7052540319fab9bd89a70a447f7f75 Mon Sep 17 00:00:00 2001 From: Argo-Surface Date: Sat, 14 Jan 2017 16:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4tipso=E7=9A=84=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=90=8E=EF=BC=8C=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Content/js/framework.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Bootstrap.Admin/Content/js/framework.js b/Bootstrap.Admin/Content/js/framework.js index 7456dc5e..61b0117f 100644 --- a/Bootstrap.Admin/Content/js/framework.js +++ b/Bootstrap.Admin/Content/js/framework.js @@ -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"); } });