UI Plugins, API call helper: Add 'pollAyncJobResult' helper, allow passing data
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/6e02fb96 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/6e02fb96 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/6e02fb96 Branch: refs/heads/master Commit: 6e02fb96c9d88da321481bde4e90c4f429fca653 Parents: 5b8e4b9 Author: Brian Federle <[email protected]> Authored: Tue Feb 12 16:10:40 2013 -0800 Committer: Brian Federle <[email protected]> Committed: Tue Feb 12 16:10:40 2013 -0800 ---------------------------------------------------------------------- ui/scripts/plugins.js | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/6e02fb96/ui/scripts/plugins.js ---------------------------------------------------------------------- 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));
