From 73b4abc46b7d30696d7ceffe72357e8f82f742ac Mon Sep 17 00:00:00 2001 From: dilanua Date: Fri, 12 Aug 2016 14:24:38 +0530 Subject: [PATCH] Updating user remove UI --- .../app/pages/cdmf.page.users/public/js/listing.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js index 4b618f2973..ba568f3fec 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js @@ -116,9 +116,8 @@ $("a.invite-user-link").click(function () { * when a user clicks on "Remove" link * on User Listing page in WSO2 MDM Console. */ -function removeUser(uname, uid) { +function removeUser(uname) { var username = uname; - var userid = uid; var removeUserAPI = apiBasePath + "/users/" + username; $(modalPopupContent).html($('#remove-user-modal-content').html()); showPopup(); @@ -127,7 +126,7 @@ function removeUser(uname, uid) { invokerUtil.delete( removeUserAPI, function () { - $("#" + userid).remove(); + $("#role-" + username).remove(); // get new user-list-count var newUserListCount = $(".user-list > span").length; // update user-listing-status-msg with new user-count @@ -308,8 +307,8 @@ function loadUsers(searchParam) { ' ' + '' + + ' data-click-event="remove-form" onclick="javascript:removeUser(\'' + data.filter + '\')" ' + + 'class="btn padding-reduce-on-grid-view remove-user-link">' + ' ' + ' ' +