new UI - creating primary storage doesn't create cluster. no need to refresh cluster under pod after this action.

This commit is contained in:
Jessica Wang 2010-10-26 11:31:40 -07:00
parent 107ad39fff
commit 7e9593a399

View File

@ -1452,12 +1452,9 @@ function initAddPrimaryStorageButton($midmenuAddLink2) {
$("#midmenu_container").append($midmenuItem1.fadeIn("slow"));
var item = json.createstoragepoolresponse;
primarystorageToMidmenu(item, $midmenuItem1);
bindClickToMidMenu($midmenuItem1, primarystorageToRightPanel, primarystorageGetMidmenuId);
refreshClusterUnderPod($("#pod_" + podObj.id));
bindClickToMidMenu($midmenuItem1, primarystorageToRightPanel, primarystorageGetMidmenuId);
},
error: function(XMLHttpResponse) {
refreshClusterUnderPod($("#pod_" + podObj.id));
error: function(XMLHttpResponse) {
handleErrorInDialog(XMLHttpResponse, $thisDialog);
}
});