currentRole.users.push(removed[i]);
}
selectedOtherUsers([]);
+ activateRoleUsersEditTab();
}
removeUser=function(){
currentRole.removedUsers.push(added[i]);
}
selectedUsers([]);
-
+ activateRoleUsersEditTab()
}
saveRoleDescription=function(){
$.log("saveRoleDescription:"+currentRole.description());
$("#roles-view-tabs-li-roles-edit").addClass("active");
}
+ activateRoleUsersListTab=function(){
+ $("#main-content #role-edit-users-li").removeClass("active");
+ $("#main-content #role-edit-users").removeClass("active");
+ // activate roles grid tab
+ $("#main-content #role-view-users-li").addClass("active");
+ $("#main-content #role-view-users").addClass("active");
+ }
+
+ activateRoleUsersEditTab=function(){
+ $("#main-content #role-view-users-li").removeClass("active");
+ $("#main-content #role-view-users").removeClass("active");
+ // activate role edit tab
+ $("#main-content #role-edit-users").addClass("active");
+ $("#role-edit-users-li").addClass("active");
+ }
+
+
});
\ No newline at end of file
{{/if}}
<ul id="role-edit-users-tabs" class="pills">
- <li class="active">
+ <li class="active" id="role-view-users-li">
<a href="#role-view-users">${$.i18n.prop('role.edit.users.list')}</a>
</li>
- <li>
+ <li id="role-edit-users-li">
<a href="#role-edit-users">${$.i18n.prop('edit')}</a>
</li>
</ul>