bug 7861: after adding secondary storage successfully, click secondary storage node under the zone.

This commit is contained in:
Jessica Wang 2011-01-11 17:10:57 -08:00
parent af3ce884cb
commit 109846f605
1 changed files with 6 additions and 3 deletions

View File

@ -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() {