Volume 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:29 -08:00
parent 761e814628
commit 708c7d2168

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