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

This reverts commit e577c6618b.
This commit is contained in:
Jessica Wang 2012-05-08 16:15:24 -07:00
parent 53ff666788
commit cacd2ffae4
1 changed files with 8 additions and 20 deletions

View File

@ -170,8 +170,7 @@
poll: pollAsyncJobResult
}
},
//???
uploadVolume: {
isHeader: true,
label: 'label.upload.volume',
@ -234,21 +233,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));
@ -257,11 +244,12 @@
},
notification: {
poll: pollAsyncJobResult
poll: function(args) {
args.complete();
}
}
}
//???
},
dataProvider: function(args) {