|
@@ -418,7 +418,30 @@ TalentQuitInfoDlg.submitToCheck = function () {
|
|
|
}
|
|
|
|
|
|
$(function () {
|
|
|
- Feng.initValidator("talentQuitForm", TalentQuitInfoDlg.validateFields);
|
|
|
+ $('#talentQuitForm').bootstrapValidator({
|
|
|
+ feedbackIcons: {
|
|
|
+ valid: 'glyphicon glyphicon-ok',
|
|
|
+ invalid: 'glyphicon glyphicon-remove',
|
|
|
+ validating: 'glyphicon glyphicon-refresh'
|
|
|
+ },
|
|
|
+ container: 'tooltip',
|
|
|
+ group: '.rowGroup',
|
|
|
+ fields: TalentQuitInfoDlg.validateFields,
|
|
|
+ live: 'enabled',
|
|
|
+ message: '该字段不能为空'
|
|
|
+ }).on('error.field.bv', function (e, data) {
|
|
|
+ // Get the tooltip
|
|
|
+ var $parent = data.element.parents('.form-group-sm'),
|
|
|
+ $icon = $parent.find('.form-control-feedback[data-bv-icon-for="' + data.field + '"]'),
|
|
|
+ title = $icon.data('bs.tooltip').getTitle();
|
|
|
+ $icon.tooltip('destroy').tooltip({
|
|
|
+ html: true,
|
|
|
+ placement: 'right',
|
|
|
+ title: title,
|
|
|
+ container: 'body'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ //Feng.initValidator("talentQuitForm", TalentQuitInfoDlg.validateFields);
|
|
|
Feng.addAjaxSelect({
|
|
|
"id": 'talentArrange',
|
|
|
"displayCode": "code",
|