diff --git a/ui/scripts/cloud.core.account.js b/ui/scripts/cloud.core.account.js index 48dff02c36c..c26c0c39ee3 100644 --- a/ui/scripts/cloud.core.account.js +++ b/ui/scripts/cloud.core.account.js @@ -364,6 +364,19 @@ function accountJsonToDetailsTab() { return; } + $.ajax({ + data: createURL("command=listAccounts&id="+jsonObj.id), + dataType: "json", + async: false, + success: function(json) { + var items = json.listaccountsresponse.account; + if(items != null && items.length > 0) { + jsonObj = items[0]; + $midmenuItem1.data("jsonObj", jsonObj); + } + } + }); + var $detailsTab = $("#right_panel_content").find("#tab_content_details"); $detailsTab.find("#grid_header_title").text(fromdb(jsonObj.name)); $detailsTab.find("#id").text(fromdb(jsonObj.id)); diff --git a/ui/scripts/cloud.core.securitygroup.js b/ui/scripts/cloud.core.securitygroup.js index e2c2f2a2dd0..61fe6487743 100644 --- a/ui/scripts/cloud.core.securitygroup.js +++ b/ui/scripts/cloud.core.securitygroup.js @@ -390,10 +390,9 @@ function securityGroupJsonToDetailsTab() { var $thisTab = $("#right_panel_content #tab_content_details"); $thisTab.find("#tab_container").hide(); $thisTab.find("#tab_spinning_wheel").show(); - - var id = jsonObj.id; + $.ajax({ - data: createURL("command=listSecurityGroups&id="+id), + data: createURL("command=listSecurityGroups&id="+jsonObj.id), dataType: "json", async: false, success: function(json) {