mirror of https://github.com/apache/cloudstack.git
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 = {
|
var pluginAPI = {
|
||||||
|
pollAsyncJob: pollAsyncJobResult,
|
||||||
apiCall: function(command, args) {
|
apiCall: function(command, args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL(command),
|
url: createURL(command),
|
||||||
|
data: args.data,
|
||||||
success: args.success,
|
success: args.success,
|
||||||
error: function(json) {
|
error: function(json) {
|
||||||
args.error(parseXMLHttpResponse(json));
|
args.error(parseXMLHttpResponse(json));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue