CS-14735: cloudstack 3.0 UI - Upload Volume - uploadVolume API is sync instead of async. Here is related UI change.

This commit is contained in:
Jessica Wang 2012-05-04 17:00:13 -07:00
parent c356fb922f
commit 12145bbf7c
1 changed files with 8 additions and 20 deletions

View File

@ -170,8 +170,7 @@
poll: pollAsyncJobResult
}
},
//???
uploadVolume: {
isHeader: true,
label: 'label.upload.volume',
@ -229,21 +228,9 @@
url: createURL("uploadVolume" + array1.join("")),
dataType: "json",
async: true,
success: function(json) {
debugger;
var jid = json.uploadvolumeresponse.jobid;
args.response.success(
{_custom:
{jobId: jid,
getUpdatedItem: function(json) {
return json.queryasyncjobresultresponse.jobresult.volume;
},
getActionFilter: function() {
return volumeActionfilter;
}
}
}
);
success: function(json) {
var items = json.uploadvolumeresponse.volume;
args.response.success({data:items[0]});
},
error: function(json) {
args.response.error(parseXMLHttpResponse(json));
@ -252,11 +239,12 @@
},
notification: {
poll: pollAsyncJobResult
poll: function(args) {
args.complete();
}
}
}
//???
},
dataProvider: function(args) {