diff --git a/ui/scripts/cloud.core.zone.js b/ui/scripts/cloud.core.zone.js index 1988b7315ce..80d50941262 100644 --- a/ui/scripts/cloud.core.zone.js +++ b/ui/scripts/cloud.core.zone.js @@ -584,8 +584,8 @@ function bindAddVLANButton($button, $leftmenuItem1) { function bindAddSecondaryStorageButton($button, $leftmenuItem1) { $button.show(); $button.unbind("click").bind("click", function(event) { - if($("#tab_content_secondarystorage").css("display") == "none") - $("#tab_secondarystorage").click(); + //if($("#tab_content_secondarystorage").css("display") == "none") + // $("#tab_secondarystorage").click(); var zoneObj = $leftmenuItem1.data("jsonObj"); $("#dialog_add_secondarystorage").find("#zone_name").text(fromdb(zoneObj.name)); @@ -616,12 +616,15 @@ function bindAddSecondaryStorageButton($button, $leftmenuItem1) { success: function(json) { $thisDialog.find("#spinning_wheel").hide(); $thisDialog.dialog("close"); - + + $("#zone_"+zoneId).find("#secondarystorage_header").click(); + /* var $subgridItem = $("#secondary_storage_tab_template").clone(true); secondaryStorageJSONToTemplate(json.addsecondarystorageresponse.secondarystorage, $subgridItem); $subgridItem.find("#after_action_info").text("Secondary storage was added successfully."); $subgridItem.find("#after_action_info_container").removeClass("error").addClass("success").show(); $("#tab_content_secondarystorage").find("#tab_container").append($subgridItem.show()); + */ }, error: function(XMLHttpResponse) { handleError(XMLHttpResponse, function() {