mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 7701: pod page - after adding primary storage - add new storage node under cluster node.
This commit is contained in:
parent
abdd6e7426
commit
9912fe8f09
@ -760,12 +760,29 @@ function bindAddPrimaryStorageButton($leftmenuItem1) {
|
||||
$thisDialog.dialog("close");
|
||||
|
||||
var item = json.createstoragepoolresponse.storagepool;
|
||||
|
||||
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();
|
||||
}
|
||||
else {
|
||||
var $primarystorageNode = $("#leftmenu_primarystorage_node_template").clone(true);
|
||||
primarystorageJSONToTreeNode(item, $primarystorageNode);
|
||||
$("#cluster_"+clusterId).find("#primarystorages_container").append($primarystorageNode.show());
|
||||
}
|
||||
|
||||
/*
|
||||
if($("#tab_content_primarystorage").length > 0 && $("#tab_content_primarystorage").css("display") != "none" && $("#primarystorage_tab_template").length > 0) {
|
||||
var $newTemplate = $("#primarystorage_tab_template").clone(true);
|
||||
hostPrimaryStorageJSONToTemplate(item, $newTemplate);
|
||||
$("#tab_content_primarystorage").find("#tab_container").append($newTemplate.show());
|
||||
}
|
||||
}
|
||||
*/
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
handleError(XMLHttpResponse, function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user