mirror of https://github.com/apache/cloudstack.git
bug 7861: after adding secondary storage successfully, click secondary storage node under the zone.
This commit is contained in:
parent
af3ce884cb
commit
109846f605
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue