mirror of https://github.com/apache/cloudstack.git
Account page - implement refresh button on right panel to refresh only the right panel (i.e. only the selected item in middle menu).
This commit is contained in:
parent
614bdc3ee2
commit
f8ffdda377
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue