}
updateModifiedRoles=function(){
-
-
var modifiedRoles = getModifiedRoles();
$.log("modifiedRoles:"+modifiedRoles);
-
-
openDialogConfirm(function(){
for(i=0;i<modifiedRoles.length;i++){
var modifiedRole=modifiedRoles[i];
mainContent.find("#roles-view-tabs #roles-view-tabs-a-roles-grid").tab("show");
activateRolesGridTab();
removeMediumSpinnerImg();
-
}
}
);
for (var i = 0; i < removed.length; i++) {
$.log("add user:"+removed[i].username());
currentRole.users.push(removed[i]);
- //role.modified(true);
role.usersModified(true);
}
selectedOtherUsers([]);
+ $("#role-collapse" ).removeClass("in");
+ $("#role-users-collapse" ).addClass("in");
activateRoleUsersEditTab();
}
removeUser=function(){
+ $.log("removeUser");
var added = currentRole.users.removeAll(selectedUsers());
for (var i = 0; i < added.length; i++) {
currentRole.otherUsers.push(added[i]);
currentRole.removedUsers.push(added[i]);
- //role.modified(true);
role.usersModified(true);
}
selectedUsers([]);
- activateRoleUsersEditTab()
+ $("#role-collapse" ).removeClass("in");
+ $("#role-users-collapse" ).addClass("in");
+ activateRoleUsersEditTab();
}
+
saveRoleDescription=function(){
currentRole.updateDescription();
}