new UI - left menu - empty zonetree and vm group tree when expand other menu.

This commit is contained in:
Jessica Wang 2010-10-19 09:48:26 -07:00
parent 1e0f2fb436
commit 9e003170c6

View File

@ -483,15 +483,6 @@ function collapseFirstLevelMenu($firstLevelMenu, $secondLevelMenu) {
$firstLevelMenu.find("#expandable_first_level_arrow").removeClass("open").addClass("close");
$firstLevelMenu.removeClass("highlighted");
$secondLevelMenu.hide();
}
function clearLeftMenu($currentMenu) {
//collapse other expanded menu if there is.
if($expandedFirstLevelMenu != null && $expandedSecondLevelMenu != null) {
//check if the expanded menu is parent/ancestor of $currentMenu. If not, collapse $expandedFirstLevelMenu.
if($expandedSecondLevelMenu.find("#"+$currentMenu.attr("id")).length == 0)
collapseFirstLevelMenu($expandedFirstLevelMenu, $expandedSecondLevelMenu);
}
$resourceArrowIcon = $("#leftmenu_resource").find("#resource_arrow");
if($resourceArrowIcon.hasClass("expanded_open") == true) {
@ -506,6 +497,15 @@ function clearLeftMenu($currentMenu) {
}
}
function clearLeftMenu($currentMenu) {
//collapse other expanded menu if there is.
if($expandedFirstLevelMenu != null && $expandedSecondLevelMenu != null) {
//check if the expanded menu is parent/ancestor of $currentMenu. If not, collapse $expandedFirstLevelMenu.
if($expandedSecondLevelMenu.find("#"+$currentMenu.attr("id")).length == 0)
collapseFirstLevelMenu($expandedFirstLevelMenu, $expandedSecondLevelMenu);
}
}
function clearMiddleMenu() {
$("#midmenu_container").empty();
$("#midmenu_action_link").hide();