重构代码,弹窗内的数据编辑验证框架,给Tooltip控件增加error样式

This commit is contained in:
Argo-Surface 2017-01-14 18:28:41 +08:00 committed by Argo-Lenovo
parent 1836953005
commit a70087347f
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@
var $ele = $(element);
if (!$ele.attr('data-original-title')) $ele.lgbTooltip({ container: parent });
$ele.attr('data-original-title', $(label).text());
$ele.lgbTooltip('show')
$ele.lgbTooltip('show');
$('#' + $ele.attr('aria-describedby')).addClass(this.errorClass);
}
});
if (handler && $.isArray(handler.button)) {