Skip to content

Commit d2fea52

Browse files
author
Jessica Wang
committed
bug 7823: pass null to listMidMenuItems() when a page doesn't have refresh data binding function.
1 parent 3f60e57 commit d2fea52

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

‎ui/scripts/cloud.core.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ function listMidMenuItems(commandString, getSearchParamsFn, jsonResponse1, jsonR
10541054
function bindAndListMidMenuItems($leftmenu, commandString, getSearchParamsFn, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSPFn, toMidmenuFn, toRightPanelFn, getMidmenuIdFn, isMultipleSelectionInMidMenu) {
10551055
$leftmenu.bind("click", function(event) {
10561056
selectLeftSubMenu($(this));
1057-
listMidMenuItems(commandString, getSearchParamsFn, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSPFn, toMidmenuFn, toRightPanelFn, getMidmenuIdFn, isMultipleSelectionInMidMenu, $(this).attr("id"));
1057+
listMidMenuItems(commandString, getSearchParamsFn, jsonResponse1, jsonResponse2, rightPanelJSP, afterLoadRightPanelJSPFn, toMidmenuFn, toRightPanelFn, getMidmenuIdFn, isMultipleSelectionInMidMenu, $(this).attr("id"), null);
10581058
return false;
10591059
});
10601060
}

‎ui/scripts/cloud.core.resource.js‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -213,25 +213,13 @@ function buildZoneTree() {
213213
}
214214
return false;
215215
});
216-
217-
/*
218-
$("#leftmenu_cluster_node_template").unbind("click").bind("click", function(event) {
219-
selectRowInZoneTree($(this).find("#cluster_header"));
220-
221-
hostClearRightPanel();
222-
var objCluster = $(this).data("jsonObj");
223-
listMidMenuItems(("listHosts&type=Routing&clusterid="+objCluster.id), hostGetSearchParams, "listhostsresponse", "host", "jsp/host.jsp", afterLoadHostJSP, hostToMidmenu, hostToRightPanel, getMidmenuId, false, ("cluster_"+objCluster.id));
224-
225-
return false;
226-
});
227-
*/
228-
216+
229217
$("#leftmenu_host_node_template").unbind("click").bind("click", function(event) {
230218
selectRowInZoneTree($(this).find("#host_header"));
231219

232220
hostClearRightPanel();
233221
var clusterObj = $(this).data("clusterObj");
234-
listMidMenuItems(("listHosts&type=Routing&clusterid="+clusterObj.id), hostGetSearchParams, "listhostsresponse", "host", "jsp/host.jsp", afterLoadHostJSP, hostToMidmenu, hostToRightPanel, getMidmenuId, false, ("cluster_"+clusterObj.id+"_host"));
222+
listMidMenuItems(("listHosts&type=Routing&clusterid="+clusterObj.id), hostGetSearchParams, "listhostsresponse", "host", "jsp/host.jsp", afterLoadHostJSP, hostToMidmenu, hostToRightPanel, getMidmenuId, false, ("cluster_"+clusterObj.id+"_host"), null);
235223

236224
return false;
237225
});

0 commit comments

Comments
 (0)