On 06/17/2011 08:12 PM, Adam Young wrote:


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

From 65156dcdf9389468e7211da339802a0052390d33 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.

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 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..cfbb9e69b987522375f9a0ec822f96e5dbfe6c84 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'}
         ]},
-- 
1.7.5.2

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

Reply via email to