UI Plugins, API call helper: Add 'pollAyncJobResult' helper, allow passing data

This commit is contained in:
Brian Federle 2013-02-12 16:10:40 -08:00
parent 5b8e4b9fd9
commit 6e02fb96c9

View File

@ -12,9 +12,11 @@
};
var pluginAPI = {
pollAsyncJob: pollAsyncJobResult,
apiCall: function(command, args) {
$.ajax({
url: createURL(command),
data: args.data,
success: args.success,
error: function(json) {
args.error(parseXMLHttpResponse(json));