mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack 3.0 new UI - ISO page - detailView - clicking refresh button will make listIsos API call to refresh data.
This commit is contained in:
parent
8c242b7e88
commit
483119ec0f
@ -1503,12 +1503,22 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
args.response.success(
|
var jsonObj = args.context.isos[0];
|
||||||
{
|
var apiCmd = "listIsos&isofilter=self&id="+jsonObj.id;
|
||||||
|
if(jsonObj.zoneid != null)
|
||||||
|
apiCmd = apiCmd + "&zoneid="+jsonObj.zoneid;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: createURL(apiCmd),
|
||||||
|
dataType: "json",
|
||||||
|
success: function(json) {
|
||||||
|
args.response.success({
|
||||||
actionFilter: isoActionfilter,
|
actionFilter: isoActionfilter,
|
||||||
data:args.context.isos[0]
|
data: json.listisosresponse.iso[0]
|
||||||
|
});
|
||||||
}
|
}
|
||||||
);
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user