cluster page - after adding a host, cluster node will expand and host node will be clicked automatically.

This commit is contained in:
Jessica Wang 2010-12-30 17:46:16 -08:00
parent 8f67f58058
commit 5c1ceb4bf1
1 changed files with 14 additions and 1 deletions

View File

@ -522,7 +522,20 @@ function bindAddHostButton($leftmenuItem1) {
success: function(json) {
$thisDialog.find("#spinning_wheel").hide();
$thisDialog.dialog("close");
//expandClusterNodeAfterAddHost(clusterRadio, podId, newClusterName, clusterId, $thisDialog); //expand cluster node to see host node
var item = json.addhostresponse.host;
var $podArrow = $("#pod_"+podId).find("#pod_arrow");
if($podArrow.hasClass("expanded_close")) {
$podArrow.click();
}
var $clusterArrow = $("#cluster_"+clusterId).find("#cluster_arrow");
if($clusterArrow.hasClass("expanded_close")) {
$clusterArrow.click();
}
$("#cluster_"+clusterId+"_host").click();
},
error: function(XMLHttpResponse) {
handleError(XMLHttpResponse, function() {