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:
1 parent
4ea381649d
commit
d72fed190e
2 files changed
+7
-5
No files matched your search
@@ -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
|
||||
|
||||
+2
-4
@@ -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'}
|
||||
]},
|
||||
|
||||
Reference in new issue
Block a user