From 109846f605a9fb9cf9fbda40b030973636d09168 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 11 Jan 2011 17:10:57 -0800 Subject: [PATCH] bug 7861: after adding secondary storage successfully, click secondary storage node under the zone. --- ui/scripts/cloud.core.zone.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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() {