Volume page - detail view - make API call to refresh data when Refresh button is clicked. [reviewed-by: Brian]

This commit is contained in:
Jessica Wang 2012-03-01 10:57:57 -08:00
parent 78a0c4fcbd
commit ee9d038320
1 changed files with 15 additions and 8 deletions

View File

@ -870,15 +870,22 @@
}
],
dataProvider: function(args) {
args.response.success(
{
actionFilter: volumeActionfilter,
data: args.context.volumes[0]
}
);
dataProvider: function(args) {
$.ajax({
url: createURL("listVolumes&id=" + args.context.volumes[0].id),
dataType: "json",
async: true,
success: function(json) {
var jsonObj = json.listvolumesresponse.volume[0];
args.response.success(
{
actionFilter: volumeActionfilter,
data: jsonObj
}
);
}
});
}
}
}
}