diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.role.edit.permission/public/js/bottomJs.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.role.edit.permission/public/js/bottomJs.js index f208c67de2..af3a8e5629 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.role.edit.permission/public/js/bottomJs.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.role.edit.permission/public/js/bottomJs.js @@ -30,6 +30,8 @@ */ var modalPopup = ".modal"; var modalPopupContent = modalPopup + " .modal-content"; +var errorMsgWrapper = "#permission-add-error-msg"; +var errorMsg = "#permission-add-error-msg span"; var apiBasePath = "/api/device-mgt/v1.0"; @@ -148,7 +150,8 @@ $(document).ready(function () { var perms = []; $("#permissionList li input:checked").each(function(){ perms.push($(this).data("resourcepath")); - }) + }); + updateRolePermissionData.roleName = roleName; updateRolePermissionData.permissions = perms; invokerUtil.put( updateRolePermissionAPI,