mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Snapshot page - detail view - make API call to refresh data when Refresh button is clicked.
This commit is contained in:
parent
708c7d2168
commit
c390826359
@ -1141,12 +1141,20 @@
|
||||
],
|
||||
|
||||
dataProvider: function(args) {
|
||||
args.response.success(
|
||||
{
|
||||
actionFilter: snapshotActionfilter,
|
||||
data: args.context.snapshots[0]
|
||||
}
|
||||
);
|
||||
$.ajax({
|
||||
url: createURL("listSnapshots&id=" + args.context.snapshots[0].id),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
success: function(json) {
|
||||
var jsonObj = json.listsnapshotsresponse.snapshot[0];
|
||||
args.response.success(
|
||||
{
|
||||
actionFilter: snapshotActionfilter,
|
||||
data: jsonObj
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user