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
This commit is contained in:
Adam Young 2011-06-17 20:09:03 -04:00 committed by Endi S. Dewata
parent 4ea381649d
commit d72fed190e
2 changed files with 7 additions and 5 deletions

View File

@ -174,12 +174,16 @@ IPA.navigation = function(spec) {
} }
} }
$('<li/>').append($('<a/>', { var tab_li =$('<li/>').append($('<a/>', {
href: '#'+tab_id, href: '#'+tab_id,
title: tab.label, title: tab.label,
html: tab.label html: tab.label
})).appendTo(ul); })).appendTo(ul);
if (tab.hidden){
tab_li.css('display','none');
}
tab.container = $('<div/>', { tab.container = $('<div/>', {
id: tab_id, id: tab_id,
name: tab.name name: tab.name

View File

@ -53,10 +53,8 @@ IPA.admin_navigation = function(spec) {
{entity: 'sudocmd'}, {entity: 'sudocmd'},
{entity: 'sudocmdgroup'} {entity: 'sudocmdgroup'}
]}, ]},
{name: 'automount', label: IPA.messages.tabs.automount, children: [ {entity: 'automountlocation', label: IPA.messages.tabs.automount},
{entity: 'automountlocation'}, {entity: 'automountmap',hidden:true},
{entity: 'automountmap'}
]},
{entity: 'pwpolicy'}, {entity: 'pwpolicy'},
{entity: 'krbtpolicy'} {entity: 'krbtpolicy'}
]}, ]},