summaryrefslogtreecommitdiffstats
path: root/install/static/user.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-08-06 15:09:29 -0400
committerAdam Young <ayoung@redhat.com>2010-08-09 15:06:27 -0400
commitb192bb76d0dccccc0749c982d57c3f88945c8484 (patch)
tree3cbaa32c5c8bf2bf3067138f43c96ccfe7ac546e /install/static/user.js
parent8ad88b411921ba90bdd149eb278639e1cbbe1a1a (diff)
downloadfreeipa.git-b192bb76d0dccccc0749c982d57c3f88945c8484.tar.gz
freeipa.git-b192bb76d0dccccc0749c982d57c3f88945c8484.tar.xz
freeipa.git-b192bb76d0dccccc0749c982d57c3f88945c8484.zip
Remove search field on group button
Hide the search bar when showing the groups listed for a user, and resotre it when doing other searches. The enroll button is added only on the groups page, and removed along with anything else in the searchButtons div when a new search is started.
Diffstat (limited to 'install/static/user.js')
-rw-r--r--install/static/user.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/install/static/user.js b/install/static/user.js
index f91fc01b..53a84359 100644
--- a/install/static/user.js
+++ b/install/static/user.js
@@ -66,7 +66,7 @@ function renderUserLinks(current, cell){
}).appendTo(cell);
$("<a/>",{
- href: "#tab=user&facet=details&pkey="+current.uid,
+ href: "#?tab=user&facet=group&pkey="+current.uid,
click:setupUserGroupMembership,
html: "[G]"
}).appendTo(cell);
@@ -243,16 +243,14 @@ function populateUserEnrollments(userData){
function setupUserGroupMembership(){
- $("#searchButtons").html("");
-
+ showSearch();
+ $("#filter").css("display","none");
$("<input/>",{
type: 'button',
value: 'enroll',
click: setupUserGroupEnrollmentSearch
}).appendTo("#searchButtons");
-
- showSearch();
var columnHeaders = document.createElement("tr");
for (var i =0 ; i != groupMembershipColumns.length ;i++){
var th = document.createElement("th");