AddCluster API return an array of embedded objects. This is related UI change.

This commit is contained in:
Jessica Wang 2010-12-30 16:58:24 -08:00
parent c6dd3d3877
commit bcab9e5d0d
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ function bindAddClusterButton($leftmenuItem1) {
}
else { //if pod node is expanded
var $clusterNode = $("#leftmenu_cluster_node_template").clone(true);
var item = json.addclusterresponse.cluster;
var item = json.addclusterresponse.cluster[0];
clusterJSONToTreeNode(item, $clusterNode);
$podNode.find("#clusters_container").append($clusterNode.show());
}