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

SVN:trunk[672]
This commit is contained in:
Denis Flaven
2010-08-10 18:38:01 +00:00
parent 9eba34362c
commit c08c12bb72
3 changed files with 6 additions and 2 deletions

View File

@@ -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({

View File

@@ -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)

View File

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