mirror of https://github.com/apache/cloudstack.git
primary storage page - implement refresh button.
This commit is contained in:
parent
6b37ae7149
commit
88e47322cc
|
|
@ -60,6 +60,19 @@ function primarystorageJsonToDetailsTab() {
|
|||
if(jsonObj == null)
|
||||
return;
|
||||
|
||||
$.ajax({
|
||||
data: createURL("command=listStoragePools&id="+jsonObj.id),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var items = json.liststoragepoolsresponse.storagepool;
|
||||
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();
|
||||
|
|
|
|||
|
|
@ -245,6 +245,9 @@ function resourceLoadPage(pageToShow, $midmenuItem1) { //$midmenuItem1 is eith
|
|||
$("#tab_details").click();
|
||||
}
|
||||
else if(pageToShow == "jsp/primarystorage.jsp") {
|
||||
$(this).data("onRefreshFn", function() {
|
||||
primarystorageJsonToDetailsTab();
|
||||
});
|
||||
afterLoadPrimaryStorageJSP($midmenuItem1);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue