new UI - resources page - populate host and primary storage into middle menu when pod node is clicked (just like when cluster node is clicked).

This commit is contained in:
Jessica Wang 2010-10-20 16:45:40 -07:00
parent 44f6264ce0
commit e9b81c9b1e

View File

@ -87,7 +87,12 @@ function buildZoneTree() {
showPage($("#pod_page"), jsonObj);
showMiddleMenu();
podJsonToDetailsTab(jsonObj);
break;
var podId = jsonObj.id;
$("#midmenu_container").empty();
listMidMenuItems2(("listHosts&type=Routing&podid="+podId), "listhostsresponse", "host", hostToMidmenu, hostToRigntPanel, hostGetMidmenuId, true);
listMidMenuItems2(("listStoragePools&podid="+podId), "liststoragepoolsresponse", "storagepool", primarystorageToMidmenu, primarystorageToRigntPanel, primarystorageGetMidmenuId, false);
break;
case "cluster_name" :
selectTreeNodeInLeftMenu(target.parent().parent().parent());
@ -95,9 +100,10 @@ function buildZoneTree() {
showPage($("#cluster_page"), jsonObj);
showMiddleMenu();
clusterJsonToDetailsTab(jsonObj);
var clusterId = jsonObj.id;
$("#midmenu_container").empty();
listMidMenuItems2(("listHosts&clusterid="+clusterId), "listhostsresponse", "host", hostToMidmenu, hostToRigntPanel, hostGetMidmenuId, true);
listMidMenuItems2(("listHosts&type=Routing&clusterid="+clusterId), "listhostsresponse", "host", hostToMidmenu, hostToRigntPanel, hostGetMidmenuId, true);
listMidMenuItems2(("listStoragePools&clusterid="+clusterId), "liststoragepoolsresponse", "storagepool", primarystorageToMidmenu, primarystorageToRigntPanel, primarystorageGetMidmenuId, false);
break;