diff options
-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'} ]}, |