Snapshot page - detail view - make API call to refresh data when Refresh button is clicked.

This commit is contained in:
Jessica Wang 2012-03-01 11:13:57 -08:00
parent 708c7d2168
commit c390826359

View File

@ -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
}
);
}
});
}
}
}