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

This reverts commit 12145bbf7c.
This commit is contained in:
JohnZ 2012-05-06 18:32:46 +01:00
parent 12145bbf7c
commit e577c6618b
1 changed files with 20 additions and 8 deletions

View File

@ -170,7 +170,8 @@
poll: pollAsyncJobResult
}
},
//???
uploadVolume: {
isHeader: true,
label: 'label.upload.volume',
@ -228,9 +229,21 @@
url: createURL("uploadVolume" + array1.join("")),
dataType: "json",
async: true,
success: function(json) {
var items = json.uploadvolumeresponse.volume;
args.response.success({data:items[0]});
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;
}
}
}
);
},
error: function(json) {
args.response.error(parseXMLHttpResponse(json));
@ -239,12 +252,11 @@
},
notification: {
poll: function(args) {
args.complete();
}
poll: pollAsyncJobResult
}
}
//???
},
dataProvider: function(args) {