From ab821131342322fced07eab361542db4300aa75d Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Mon, 26 Dec 2016 13:16:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9B=9B=E4=B8=AA=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E9=A1=B5=E9=9D=A2=E7=9A=84Title=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Content/js/Longbow.Common.js | 2 +- Bootstrap.Admin/Scripts/Groups.js | 8 ++++++-- Bootstrap.Admin/Scripts/Menus.js | 4 +++- Bootstrap.Admin/Scripts/Roles.js | 8 ++++++-- Bootstrap.Admin/Scripts/Users.js | 8 ++++++-- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js index 8c6f48a4..14d26e09 100644 --- a/Bootstrap.Admin/Content/js/Longbow.Common.js +++ b/Bootstrap.Admin/Content/js/Longbow.Common.js @@ -118,7 +118,7 @@ url: this.url, data: {}, method: "POST", - htmlTemplate: '
', + htmlTemplate: '
', title: this.title, swal: true, modal: null, diff --git a/Bootstrap.Admin/Scripts/Groups.js b/Bootstrap.Admin/Scripts/Groups.js index cc03c59f..a8632651 100644 --- a/Bootstrap.Admin/Scripts/Groups.js +++ b/Bootstrap.Admin/Scripts/Groups.js @@ -27,7 +27,9 @@ return $.format(htmlTemplate, element.ID, element.RoleName, element.Checked, element.Description); }).join('') $dialogRoleHeader.text($.format('{0}-角色授权窗口', row.GroupName)); - $dialogRoleForm.html(html); + $dialogRoleForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogRole.modal('show'); } }); @@ -43,7 +45,9 @@ return $.format(htmlTemplate, element.ID, element.DisplayName, element.Checked, element.UserName); }).join(''); $dialogUserHeader.text($.format('{0}-用户授权窗口', row.GroupName)); - $dialogUserForm.html(html); + $dialogUserForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogUser.modal('show'); } }); diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js index 206eacba..5874a6ae 100644 --- a/Bootstrap.Admin/Scripts/Menus.js +++ b/Bootstrap.Admin/Scripts/Menus.js @@ -49,7 +49,9 @@ return $.format(htmlTemplate, element.ID, element.RoleName, element.Checked, element.Description); }).join('') $dialogRoleHeader.text($.format('{0}-角色授权窗口', row.Name)); - $dialogRoleForm.html(html); + $dialogRoleForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogRole.modal('show'); } }); diff --git a/Bootstrap.Admin/Scripts/Roles.js b/Bootstrap.Admin/Scripts/Roles.js index 6ad54ea0..02e357bd 100644 --- a/Bootstrap.Admin/Scripts/Roles.js +++ b/Bootstrap.Admin/Scripts/Roles.js @@ -33,7 +33,9 @@ return $.format(htmlTemplate, element.ID, element.DisplayName, element.Checked, element.UserName); }).join(''); $dialogUserHeader.text($.format('{0}-用户授权窗口', row.RoleName)); - $dialogUserForm.html(html); + $dialogUserForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogUser.modal('show'); } }); @@ -49,7 +51,9 @@ return $.format(htmlTemplate, element.ID, element.GroupName, element.Checked, element.Description); }).join(''); $dialogGroupHeader.text($.format('{0}-部门授权窗口', row.RoleName)); - $dialogGroupForm.html(html); + $dialogGroupForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogGroup.modal('show'); } }); diff --git a/Bootstrap.Admin/Scripts/Users.js b/Bootstrap.Admin/Scripts/Users.js index 1aeed783..5ebc1c61 100644 --- a/Bootstrap.Admin/Scripts/Users.js +++ b/Bootstrap.Admin/Scripts/Users.js @@ -29,7 +29,9 @@ return $.format(htmlTemplate, element.ID, element.RoleName, element.Checked, element.Description); }).join('') $dialogRoleHeader.text($.format('{0}-角色授权窗口', row.DisplayName)); - $dialogRoleForm.html(html); + $dialogRoleForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogRole.modal('show'); } }); @@ -45,7 +47,9 @@ return $.format(htmlTemplate, element.ID, element.GroupName, element.Checked, element.Description); }).join(''); $dialogGroupHeader.text($.format('{0}-部门授权窗口', row.DisplayName)); - $dialogGroupForm.html(html); + $dialogGroupForm.html(html).find('.tipso_style').each(function (index, label) { + if (label.title == "") label.title = "未设置"; + }).tipso(); $dialogGroup.modal('show'); } });