mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
UI Plugins, API call helper: Add 'pollAyncJobResult' helper, allow passing data
This commit is contained in:
parent
5b8e4b9fd9
commit
6e02fb96c9
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user