Bläddra i källkod

- Fixed Trac #196: root menu nodes are no longer hyperlink, thus cannot be opened in a new window/tab.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@672 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 år sedan
förälder
incheckning
01e1f5c716
3 ändrade filer med 6 tillägg och 2 borttagningar
  1. 1 1
      application/itopwebpage.class.inc.php
  2. 1 1
      application/menunode.class.inc.php
  3. 4 0
      css/light-grey.css

+ 1 - 1
application/itopwebpage.class.inc.php

@@ -113,7 +113,7 @@ class iTopWebPage extends NiceWebPage
 		}
 
 		// Accordion Menu
-		$("#accordion").accordion({ header: "h3", navigation: true, autoHeight: false, collapsible: false });
+		$("#accordion").accordion({ header: "h3", navigation: true, autoHeight: false, collapsible: false, icons: false });
  	});
 	//add new widget called TruncatedList to properly display truncated lists when they are sorted
 	$.tablesorter.addWidget({ 

+ 1 - 1
application/menunode.class.inc.php

@@ -99,7 +99,7 @@ class ApplicationMenu
 		{
 			$oMenuNode = self::GetMenuNode($aMenu['index']);
 			if (($oMenuNode->GetMenuId() == 'AdminTools') && (!UserRights::IsAdministrator())) continue; // Don't display the admin menu for non admin users
-			$oPage->AddToMenu('<h3><a href="'.$oMenuNode->GetHyperlink($aExtraParams).'">'.$oMenuNode->GetTitle().'</a></h3>');
+			$oPage->AddToMenu('<h3>'.$oMenuNode->GetTitle().'</h3>');
 			$oPage->AddToMenu('<div>');
 			$aChildren = self::GetChildren($aMenu['index']);
 			if (count($aChildren) > 0)

+ 4 - 0
css/light-grey.css

@@ -236,6 +236,10 @@ input.textSearch {
     background-color:#FFFFFF;
 }
 
+#accordion h3 {
+	padding: 10px;
+}
+
 .ui-accordion-content ul {
     list-style:none;
     padding-left:16px;