| commit | 6e02fb96c9d88da321481bde4e90c4f429fca653 | [log] [tgz] |
|---|---|---|
| author | Brian Federle <brian.federle@citrix.com> | Tue Feb 12 16:10:40 2013 -0800 |
| committer | Brian Federle <brian.federle@citrix.com> | Tue Feb 12 16:10:40 2013 -0800 |
| tree | 6b882bce9e9eff57c7e0fc4447493491b19f8ae6 | |
| parent | 5b8e4b9fd9b00276b2fb29e3e4f41da217c40f87 [diff] |
UI Plugins, API call helper: Add 'pollAyncJobResult' helper, allow passing data
diff --git a/ui/scripts/plugins.js b/ui/scripts/plugins.js index b83dffe..4563f83 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));