mirror of https://github.com/apache/archiva.git
add ids for selenium tests and force tab activation as webkit tend to fail
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1228029 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
515d54e810
commit
230185791c
|
@ -163,6 +163,7 @@ $(function() {
|
|||
currentRole.users.push(removed[i]);
|
||||
}
|
||||
selectedOtherUsers([]);
|
||||
activateRoleUsersEditTab();
|
||||
}
|
||||
|
||||
removeUser=function(){
|
||||
|
@ -172,7 +173,7 @@ $(function() {
|
|||
currentRole.removedUsers.push(added[i]);
|
||||
}
|
||||
selectedUsers([]);
|
||||
|
||||
activateRoleUsersEditTab()
|
||||
}
|
||||
saveRoleDescription=function(){
|
||||
$.log("saveRoleDescription:"+currentRole.description());
|
||||
|
@ -237,4 +238,21 @@ $(function() {
|
|||
$("#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");
|
||||
}
|
||||
|
||||
|
||||
});
|
|
@ -117,10 +117,10 @@
|
|||
{{/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>
|
||||
|
|
Loading…
Reference in New Issue