mirror of https://github.com/apache/cloudstack.git
cluster page - after adding a host, cluster node will expand and host node will be clicked automatically.
This commit is contained in:
parent
8f67f58058
commit
5c1ceb4bf1
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue