mirror of https://github.com/apache/cloudstack.git
Snapshot page - detail view - make API call to refresh data when Refresh button is clicked. [reviewed-by: Brian]
This commit is contained in:
parent
ee9d038320
commit
717a863470
|
|
@ -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…
Reference in New Issue