mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing role add permission update issue
This commit is contained in:
parent
0eaf33aa5c
commit
7edc7f29db
@ -30,6 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
var modalPopup = ".modal";
|
var modalPopup = ".modal";
|
||||||
var modalPopupContent = modalPopup + " .modal-content";
|
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";
|
var apiBasePath = "/api/device-mgt/v1.0";
|
||||||
|
|
||||||
@ -148,7 +150,8 @@ $(document).ready(function () {
|
|||||||
var perms = [];
|
var perms = [];
|
||||||
$("#permissionList li input:checked").each(function(){
|
$("#permissionList li input:checked").each(function(){
|
||||||
perms.push($(this).data("resourcepath"));
|
perms.push($(this).data("resourcepath"));
|
||||||
})
|
});
|
||||||
|
updateRolePermissionData.roleName = roleName;
|
||||||
updateRolePermissionData.permissions = perms;
|
updateRolePermissionData.permissions = perms;
|
||||||
invokerUtil.put(
|
invokerUtil.put(
|
||||||
updateRolePermissionAPI,
|
updateRolePermissionAPI,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user