mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 13452: System page - Change UI to handle createStorageNetworkIpRange API as async.
This commit is contained in:
parent
09801a2054
commit
67ed483098
@ -501,17 +501,16 @@
|
||||
$.ajax({
|
||||
url: createURL("createStorageNetworkIpRange" + array1.join("")),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.createstoragenetworkiprange.storageiprange; //???
|
||||
args.response.success({
|
||||
data: item,
|
||||
notification: {
|
||||
label: 'IP range is added',
|
||||
poll: function(args) {
|
||||
args.complete();
|
||||
}
|
||||
}
|
||||
});
|
||||
success: function(json) {
|
||||
args.response.success({
|
||||
_custom: {
|
||||
jobId: json.createstoragenetworkiprangeresponse.jobid
|
||||
},
|
||||
notification: {
|
||||
label: 'Added IP range',
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user