From d72fed190e4ecc6d89deaa459f3426bd551cda3b Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 17 Jun 2011 20:09:03 -0400 Subject: 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 --- install/ui/navigation.js | 6 +++++- 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) { } } - $('
  • ').append($('', { + var tab_li =$('
  • ').append($('', { href: '#'+tab_id, title: tab.label, html: tab.label })).appendTo(ul); + if (tab.hidden){ + tab_li.css('display','none'); + } + tab.container = $('
    ', { 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'} ]}, -- cgit