diff options
author | Adam Young <ayoung@redhat.com> | 2010-08-06 15:09:29 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-08-09 15:06:27 -0400 |
commit | b192bb76d0dccccc0749c982d57c3f88945c8484 (patch) | |
tree | 3cbaa32c5c8bf2bf3067138f43c96ccfe7ac546e /install | |
parent | 8ad88b411921ba90bdd149eb278639e1cbbe1a1a (diff) | |
download | freeipa-b192bb76d0dccccc0749c982d57c3f88945c8484.tar.gz freeipa-b192bb76d0dccccc0749c982d57c3f88945c8484.tar.xz freeipa-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')
-rw-r--r-- | install/static/index.xhtml | 4 | ||||
-rw-r--r-- | install/static/search.js | 3 | ||||
-rw-r--r-- | install/static/user.js | 8 |
3 files changed, 8 insertions, 7 deletions
diff --git a/install/static/index.xhtml b/install/static/index.xhtml index a33b08364..b22a5bacc 100644 --- a/install/static/index.xhtml +++ b/install/static/index.xhtml @@ -49,8 +49,8 @@ </div> <div id="search" style="visibility:hidden"> - <div class="searchControls" > - <span class="filter" > + <div id="searchControls" class="searchControls" > + <span id="filter" class="filter" > <input id="queryFilter" type="text"/> <input id="query" type="submit" value="find" /> <input id="new" type="submit" value="new" /> diff --git a/install/static/search.js b/install/static/search.js index 6b0be6d47..de11f2eda 100644 --- a/install/static/search.js +++ b/install/static/search.js @@ -15,6 +15,9 @@ function showSearch(){ $('#content').css("visibility","hidden"); $('#search').css("display","block"); $('#content').css("display","none"); + $("#filter").css("display","block"); + $("#searchButtons").html(""); + } diff --git a/install/static/user.js b/install/static/user.js index f91fc01be..53a84359d 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"); |