From 6e02fb96c9d88da321481bde4e90c4f429fca653 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Tue, 12 Feb 2013 16:10:40 -0800 Subject: [PATCH] UI Plugins, API call helper: Add 'pollAyncJobResult' helper, allow passing data --- ui/scripts/plugins.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/scripts/plugins.js b/ui/scripts/plugins.js index b83dffe8c5d..4563f83f990 100644 --- a/ui/scripts/plugins.js +++ b/ui/scripts/plugins.js @@ -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));