From 0f254711921ac95fe4faa00f97fc97f97d74f5a2 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Fri, 17 Jun 2011 20:09:03 -0400
Subject: [PATCH] hide automount tabs.

the tabs are required for natigation, but they should not be visible, as the breadcrub provides the navigation for them instead.
---
 install/ui/navigation.js |    6 +++++-
 install/ui/webui.js      |    4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/install/ui/navigation.js b/install/ui/navigation.js
index 8e332cf6720efbcb6e00d4bd7af9750329ad8ba1..308f21154e09e79af572a2b2b39320b85db506af 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 c014cea727c7cd60eec8e66e29ee7381bbedd347..bb615506a975296421fbfad0490873d2112e66df 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -54,8 +54,8 @@ IPA.admin_navigation = function(spec) {
                  {entity: 'sudocmdgroup'}
             ]},
             {name: 'automount', label: IPA.messages.tabs.automount, children: [
-                {entity: 'automountlocation'},
-                {entity: 'automountmap'}
+                {entity: 'automountlocation',hidden:true},
+                {entity: 'automountmap',hidden:true}
             ]},
             {entity: 'pwpolicy'},
             {entity: 'krbtpolicy'}
-- 
1.7.5.2

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to