mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 18:43:26 +01:00
new UI - add Zone Pod Wizard - expand zone tree when wizard pops up.
This commit is contained in:
parent
e79e432807
commit
57657b6103
@ -152,14 +152,7 @@ $(document).ready(function() {
|
|||||||
disableMultipleSelectionInMidMenu();
|
disableMultipleSelectionInMidMenu();
|
||||||
clearMiddleMenu();
|
clearMiddleMenu();
|
||||||
|
|
||||||
$arrowIcon = $(this).find("#physical_resource_arrow");
|
expandOrCollapseZoneTree();
|
||||||
if($arrowIcon.hasClass("expanded_close") == true) {
|
|
||||||
$arrowIcon.removeClass("expanded_close").addClass("expanded_open");
|
|
||||||
buildZoneTree();
|
|
||||||
} else {
|
|
||||||
$arrowIcon.removeClass("expanded_open").addClass("expanded_close");
|
|
||||||
$("#leftmenu_zone_tree").find("#tree_container").empty();
|
|
||||||
}
|
|
||||||
|
|
||||||
resourceLoadPage("jsp/resource.jsp", null);
|
resourceLoadPage("jsp/resource.jsp", null);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -1051,6 +1051,17 @@ function drawBarChart($capacity, percentused) { //percentused == "0.01%" (having
|
|||||||
else if (percentusedFloat > 0.8 )
|
else if (percentusedFloat > 0.8 )
|
||||||
$capacity.find("#bar_chart").removeClass().addClass("db_barbox high").css("width", percentused);
|
$capacity.find("#bar_chart").removeClass().addClass("db_barbox high").css("width", percentused);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function expandOrCollapseZoneTree() {
|
||||||
|
$arrowIcon = $("#leftmenu_physical_resource").find("#physical_resource_arrow");
|
||||||
|
if($arrowIcon.hasClass("expanded_close") == true) {
|
||||||
|
$arrowIcon.removeClass("expanded_close").addClass("expanded_open");
|
||||||
|
buildZoneTree();
|
||||||
|
} else {
|
||||||
|
$arrowIcon.removeClass("expanded_open").addClass("expanded_close");
|
||||||
|
$("#leftmenu_zone_tree").find("#tree_container").empty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -347,13 +347,10 @@ function initAddZoneShortcut() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#add_zone_shortcut").unbind("click").bind("click", function(event) {
|
$("#add_zone_shortcut").unbind("click").bind("click", function(event) {
|
||||||
/*
|
|
||||||
if($("#leftmenu_physical_resource").find("#physical_resource_arrow").hasClass("expanded_close") == true)
|
if($("#leftmenu_physical_resource").find("#physical_resource_arrow").hasClass("expanded_close") == true)
|
||||||
$("#leftmenu_physical_resource").click(); //if Physical Resource arrow shows closed (i.e. zonetree is hidden), expand and show zonetree.
|
expandOrCollapseZoneTree(); //if Physical Resource arrow shows closed (i.e. zonetree is hidden), expand and show zonetree.
|
||||||
*/
|
|
||||||
|
|
||||||
//$addZoneWizard.find("#info_container").hide();
|
|
||||||
openAddZoneWizard();
|
openAddZoneWizard();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user