From 32be5f7693c98ec822072ec44105e9e8fc4463d4 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 18 Oct 2010 14:33:10 -0700 Subject: [PATCH] new UI - collapse other expanded menu when clicking dashboard that doesn't have submenu. --- ui/new/scripts/cloud.core2.init.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/new/scripts/cloud.core2.init.js b/ui/new/scripts/cloud.core2.init.js index bfff149204c..ed283e3bae7 100644 --- a/ui/new/scripts/cloud.core2.init.js +++ b/ui/new/scripts/cloud.core2.init.js @@ -78,6 +78,8 @@ $(document).ready(function() { }); $("#leftmenu_dashboard").bind("click", function(event) { + if($expandedFirstLevelMenu != null && $expandedSecondLevelMenu != null) //collapse other expanded menu if there is. + collapseFirstLevelMenu($expandedFirstLevelMenu, $expandedSecondLevelMenu); selectLeftMenu($(this)); hideMiddleMenu();