mirror of https://github.com/apache/cloudstack.git
bug 7823: pass null to listMidMenuItems() when a page doesn't have refresh data binding function.
This commit is contained in:
parent
3f60e579f7
commit
d2fea52c56
|
|
@ -1054,7 +1054,7 @@ function listMidMenuItems(commandString, getSearchParamsFn, jsonResponse1, jsonR
|
|||
function bindAndListMidMenuItems($leftmenu, commandString, getSearchParamsFn, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSPFn, toMidmenuFn, toRightPanelFn, getMidmenuIdFn, isMultipleSelectionInMidMenu) {
|
||||
$leftmenu.bind("click", function(event) {
|
||||
selectLeftSubMenu($(this));
|
||||
listMidMenuItems(commandString, getSearchParamsFn, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSPFn, toMidmenuFn, toRightPanelFn, getMidmenuIdFn, isMultipleSelectionInMidMenu, $(this).attr("id"));
|
||||
listMidMenuItems(commandString, getSearchParamsFn, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSPFn, toMidmenuFn, toRightPanelFn, getMidmenuIdFn, isMultipleSelectionInMidMenu, $(this).attr("id"), null);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -213,25 +213,13 @@ function buildZoneTree() {
|
|||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
/*
|
||||
$("#leftmenu_cluster_node_template").unbind("click").bind("click", function(event) {
|
||||
selectRowInZoneTree($(this).find("#cluster_header"));
|
||||
|
||||
hostClearRightPanel();
|
||||
var objCluster = $(this).data("jsonObj");
|
||||
listMidMenuItems(("listHosts&type=Routing&clusterid="+objCluster.id), hostGetSearchParams, "listhostsresponse", "host", "jsp/host.jsp", afterLoadHostJSP, hostToMidmenu, hostToRightPanel, getMidmenuId, false, ("cluster_"+objCluster.id));
|
||||
|
||||
return false;
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
$("#leftmenu_host_node_template").unbind("click").bind("click", function(event) {
|
||||
selectRowInZoneTree($(this).find("#host_header"));
|
||||
|
||||
hostClearRightPanel();
|
||||
var clusterObj = $(this).data("clusterObj");
|
||||
listMidMenuItems(("listHosts&type=Routing&clusterid="+clusterObj.id), hostGetSearchParams, "listhostsresponse", "host", "jsp/host.jsp", afterLoadHostJSP, hostToMidmenu, hostToRightPanel, getMidmenuId, false, ("cluster_"+clusterObj.id+"_host"));
|
||||
listMidMenuItems(("listHosts&type=Routing&clusterid="+clusterObj.id), hostGetSearchParams, "listhostsresponse", "host", "jsp/host.jsp", afterLoadHostJSP, hostToMidmenu, hostToRightPanel, getMidmenuId, false, ("cluster_"+clusterObj.id+"_host"), null);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue