mirror of https://github.com/apache/cloudstack.git
Template page, ISO page - refresh right panel when a middle menu item is clicked.
This commit is contained in:
parent
c22e41ea92
commit
08abe76f15
|
|
@ -289,6 +289,22 @@ function isoJsonToDetailsTab() {
|
|||
return;
|
||||
}
|
||||
|
||||
var strCmd = "command=listIsos&isofilter=self&id="+jsonObj.id;
|
||||
if(jsonObj.zoneid != null)
|
||||
strCmd = strCmd + "&zoneid="+jsonObj.zoneid;
|
||||
$.ajax({
|
||||
data: createURL(strCmd),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var items = json.listisosresponse.iso;
|
||||
if(items != null && items.length > 0) {
|
||||
jsonObj = items[0];
|
||||
$midmenuItem1.data("jsonObj", jsonObj);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var $thisTab = $("#right_panel_content #tab_content_details");
|
||||
$thisTab.find("#tab_container").hide();
|
||||
$thisTab.find("#tab_spinning_wheel").show();
|
||||
|
|
|
|||
|
|
@ -315,7 +315,23 @@ function templateJsonToDetailsTab() {
|
|||
templateClearDetailsTab();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var strCmd = "command=listTemplates&templatefilter=self&id="+jsonObj.id;
|
||||
if(jsonObj.zoneid != null)
|
||||
strCmd = strCmd +"&zoneid="+jsonObj.zoneid;
|
||||
$.ajax({
|
||||
data: createURL(strCmd),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var items = json.listtemplatesresponse.template;
|
||||
if(items != null && items.length > 0) {
|
||||
jsonObj = items[0];
|
||||
$midmenuItem1.data("jsonObj", jsonObj);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var $thisTab = $("#right_panel_content").find("#tab_content_details");
|
||||
$thisTab.find("#tab_container").hide();
|
||||
$thisTab.find("#tab_spinning_wheel").show();
|
||||
|
|
|
|||
Loading…
Reference in New Issue