From 6ee4048bbda2990c203dcc27a82f0ab7defb4e72 Mon Sep 17 00:00:00 2001 From: summer853300975 <853300975@qq.com> Date: Mon, 31 Oct 2016 11:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=89=8D=E5=8F=B0GroupConfig?= =?UTF-8?q?=EF=BC=8CRoleConfig=EF=BC=8CUserConfig=E4=B8=AD=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=8F=90=E4=BA=A4=E7=9A=84=E6=8C=89=E9=92=AE=E7=9A=84?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Groups.js | 9 ++------- Bootstrap.Admin/Scripts/Menus.js | 2 +- Bootstrap.Admin/Scripts/Roles.js | 4 ++-- Bootstrap.Admin/Scripts/Users.js | 4 ++-- Bootstrap.Admin/Views/Shared/GroupConfig.cshtml | 2 +- Bootstrap.Admin/Views/Shared/RoleConfig.cshtml | 2 +- Bootstrap.Admin/Views/Shared/UserConfig.cshtml | 2 +- 7 files changed, 10 insertions(+), 15 deletions(-) diff --git a/Bootstrap.Admin/Scripts/Groups.js b/Bootstrap.Admin/Scripts/Groups.js index 4981c3ff..cf2b7829 100644 --- a/Bootstrap.Admin/Scripts/Groups.js +++ b/Bootstrap.Admin/Scripts/Groups.js @@ -28,7 +28,7 @@ }); } }, { - id: 'btnSubmitUserRole', + id: 'btnSubmitRole', click: function (row) { var groupId = row.ID; @@ -38,7 +38,7 @@ Role.saveRolesByGroupId(groupId, roleIds, { modal: 'dialogRole' }); } },{ - id: 'btnSubmitRoleUser', + id: 'btnSubmitUser', click: function (row) { var groupId = row.ID; var userIds = $('#dialogUser :checked').map(function (index, element) { @@ -47,11 +47,6 @@ User.saveUsersByGroupId(groupId, userIds, { modal: 'dialogUser' }); } }] - }, - success: function (src, data) { - if (src === 'save' && data.ID === $('#userId').val()) { - $('.username').text(data.DisplayName); - } } }); diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js index 94fdb17f..a22dbb5c 100644 --- a/Bootstrap.Admin/Scripts/Menus.js +++ b/Bootstrap.Admin/Scripts/Menus.js @@ -23,7 +23,7 @@ }); } }, { - id: 'btnSubmitUserRole', + id: 'btnSubmitRole', click: function (row) { var menuId = row.ID; var roleIds = $('#dialogRole :checked').map(function (index, element) { diff --git a/Bootstrap.Admin/Scripts/Roles.js b/Bootstrap.Admin/Scripts/Roles.js index ef3a9c21..b6b26150 100644 --- a/Bootstrap.Admin/Scripts/Roles.js +++ b/Bootstrap.Admin/Scripts/Roles.js @@ -28,7 +28,7 @@ }) } }, { - id: 'btnSubmitRoleUser', + id: 'btnSubmitUser', click: function (row) { var roleId = row.ID; var userIds = $('#dialogUser :checked').map(function (index, element) { @@ -38,7 +38,7 @@ } }, { - id: 'btnSubmitUserGroup', + id: 'btnSubmitGroup', click: function (row) { var roleId = row.ID; var groupIds = $('#dialogGroup :checked').map(function (index, element) { diff --git a/Bootstrap.Admin/Scripts/Users.js b/Bootstrap.Admin/Scripts/Users.js index 08ce70eb..b5b26f70 100644 --- a/Bootstrap.Admin/Scripts/Users.js +++ b/Bootstrap.Admin/Scripts/Users.js @@ -29,7 +29,7 @@ }); } }, { - id: 'btnSubmitUserRole', + id: 'btnSubmitRole', click: function (row) { var userId = row.ID; var roleIds = $('#dialogRole :checked').map(function (index, element) { @@ -38,7 +38,7 @@ Role.saveRolesByUserId(userId, roleIds, { modal: 'dialogRole' }); } }, { - id: 'btnSubmitUserGroup', + id: 'btnSubmitGroup', click: function (row) { var userId = row.ID; var groupIds = $('#dialogGroup :checked').map(function (index, element) { diff --git a/Bootstrap.Admin/Views/Shared/GroupConfig.cshtml b/Bootstrap.Admin/Views/Shared/GroupConfig.cshtml index c0ff4fbf..0ea4ba47 100644 --- a/Bootstrap.Admin/Views/Shared/GroupConfig.cshtml +++ b/Bootstrap.Admin/Views/Shared/GroupConfig.cshtml @@ -10,7 +10,7 @@ diff --git a/Bootstrap.Admin/Views/Shared/RoleConfig.cshtml b/Bootstrap.Admin/Views/Shared/RoleConfig.cshtml index 475ce5d8..a1ef8da8 100644 --- a/Bootstrap.Admin/Views/Shared/RoleConfig.cshtml +++ b/Bootstrap.Admin/Views/Shared/RoleConfig.cshtml @@ -11,7 +11,7 @@ diff --git a/Bootstrap.Admin/Views/Shared/UserConfig.cshtml b/Bootstrap.Admin/Views/Shared/UserConfig.cshtml index 17544335..f8efc2c6 100644 --- a/Bootstrap.Admin/Views/Shared/UserConfig.cshtml +++ b/Bootstrap.Admin/Views/Shared/UserConfig.cshtml @@ -10,7 +10,7 @@