diff options
author | Adam Young <ayoung@redhat.com> | 2011-06-17 20:09:03 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-06-20 16:39:47 +0000 |
commit | d72fed190e4ecc6d89deaa459f3426bd551cda3b (patch) | |
tree | 7d34d2c626a7caf3638432f7e86b8e49e35529a6 | |
parent | 4ea381649d3c951941f0ae7626adfaea6ce73870 (diff) | |
download | freeipa-d72fed190e4ecc6d89deaa459f3426bd551cda3b.tar.gz freeipa-d72fed190e4ecc6d89deaa459f3426bd551cda3b.tar.xz freeipa-d72fed190e4ecc6d89deaa459f3426bd551cda3b.zip |
hide automount tabs.
the tabs are required for natigation, but they should not be visible, as the breadcrub provides the navigation for them instead.
Moved the automount tabs up one level so that it uses the two level style
-rw-r--r-- | install/ui/navigation.js | 6 | ||||
-rw-r--r-- | install/ui/webui.js | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/install/ui/navigation.js b/install/ui/navigation.js index 8e332cf67..308f21154 100644 --- a/install/ui/navigation.js +++ b/install/ui/navigation.js @@ -174,12 +174,16 @@ IPA.navigation = function(spec) { } } - $('<li/>').append($('<a/>', { + var tab_li =$('<li/>').append($('<a/>', { href: '#'+tab_id, title: tab.label, html: tab.label })).appendTo(ul); + if (tab.hidden){ + tab_li.css('display','none'); + } + tab.container = $('<div/>', { id: tab_id, name: tab.name diff --git a/install/ui/webui.js b/install/ui/webui.js index c014cea72..cfbb9e69b 100644 --- a/install/ui/webui.js +++ b/install/ui/webui.js @@ -53,10 +53,8 @@ IPA.admin_navigation = function(spec) { {entity: 'sudocmd'}, {entity: 'sudocmdgroup'} ]}, - {name: 'automount', label: IPA.messages.tabs.automount, children: [ - {entity: 'automountlocation'}, - {entity: 'automountmap'} - ]}, + {entity: 'automountlocation', label: IPA.messages.tabs.automount}, + {entity: 'automountmap',hidden:true}, {entity: 'pwpolicy'}, {entity: 'krbtpolicy'} ]}, |