From 77add675cddf00fc8e6d9aa9a203dec84f2b58e9 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Sun, 27 Nov 2016 19:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E8=B0=83?= =?UTF-8?q?=E7=94=A8tipso=E6=96=B9=E6=B3=95=E5=89=8D=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Content/js/Longbow.Common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js index 6ed4a403..9e2f8b46 100644 --- a/Bootstrap.Admin/Content/js/Longbow.Common.js +++ b/Bootstrap.Admin/Content/js/Longbow.Common.js @@ -148,7 +148,7 @@ highlight: function (element, errorClass, validClass) { var $ele = $(element); $ele.parents('.form-group').addClass(errorClass).removeClass(validClass); - if ($ele.hasClass('tipso_style')) $ele.tipso({ + if ($.isFunction($ele.tipso)) $ele.tipso({ useTitle: false, position: 'top', background: '#a94442' @@ -161,7 +161,7 @@ }, errorPlacement: function (label, element) { var $ele = $(element); - if ($ele.hasClass('tipso_style')) $ele.tipso('update', 'content', $(label).text()); + if ($.isFunction($ele.tipso)) $ele.tipso('update', 'content', $(label).text()); } }); if (handler && $.isArray(handler.button)) {