mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
new UI - Add Zone Pod Wizard - hide spinning wheel after all of 3 API calls have finished.
This commit is contained in:
parent
49e9d66154
commit
f2cbdb99bf
@ -502,8 +502,7 @@ function addZoneWizardSubmit($thisWizard) {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
afterActionMsg += "Zone was created successfully<br>";
|
afterActionMsg += "Zone was created successfully<br><br>";
|
||||||
$thisWizard.find("#spinning_wheel").hide();
|
|
||||||
|
|
||||||
$zoneNode = $("#leftmenu_zone_node_template").clone(true);
|
$zoneNode = $("#leftmenu_zone_node_template").clone(true);
|
||||||
var $zoneTree = $("#leftmenu_zone_tree").find("#tree_container");
|
var $zoneTree = $("#leftmenu_zone_tree").find("#tree_container");
|
||||||
@ -517,8 +516,7 @@ function addZoneWizardSubmit($thisWizard) {
|
|||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
handleError(XMLHttpResponse, function() {
|
handleError(XMLHttpResponse, function() {
|
||||||
afterActionMsg += ("Failed to create zone. " + parseXMLHttpResponse(XMLHttpResponse) + "<br>");
|
afterActionMsg += ("Failed to create zone. " + parseXMLHttpResponse(XMLHttpResponse) + "<br><br>");
|
||||||
$thisWizard.find("#spinning_wheel").hide();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -544,8 +542,7 @@ function addZoneWizardSubmit($thisWizard) {
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
afterActionMsg += "Pod was created successfully<br>";
|
afterActionMsg += "Pod was created successfully<br><br>";
|
||||||
$thisWizard.find("#spinning_wheel").hide();
|
|
||||||
|
|
||||||
var item = json.createpodresponse.pod;
|
var item = json.createpodresponse.pod;
|
||||||
podId = item.id;
|
podId = item.id;
|
||||||
@ -569,8 +566,7 @@ function addZoneWizardSubmit($thisWizard) {
|
|||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
handleError(XMLHttpResponse, function() {
|
handleError(XMLHttpResponse, function() {
|
||||||
afterActionMsg += ("Failed to create Pod. " + parseXMLHttpResponse(XMLHttpResponse) + "<br>");
|
afterActionMsg += ("Failed to create Pod. " + parseXMLHttpResponse(XMLHttpResponse) + "<br><br>");
|
||||||
$thisWizard.find("#spinning_wheel").hide();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -595,20 +591,21 @@ function addZoneWizardSubmit($thisWizard) {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
data: createURL("command=createVlanIpRange" + array1.join("")),
|
data: createURL("command=createVlanIpRange" + array1.join("")),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
async: false,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
afterActionMsg += "Guest IP range was created successfully<br>";
|
afterActionMsg += "Guest IP range was created successfully<br><br>";
|
||||||
var item = json.createvlaniprangeresponse.vlan;
|
var item = json.createvlaniprangeresponse.vlan;
|
||||||
vlanId = item.id;
|
vlanId = item.id;
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
handleError(XMLHttpResponse, function() {
|
handleError(XMLHttpResponse, function() {
|
||||||
afterActionMsg += ("Failed to create Guest IP range. " + parseXMLHttpResponse(XMLHttpResponse) + "<br>");
|
afterActionMsg += ("Failed to create Guest IP range. " + parseXMLHttpResponse(XMLHttpResponse) + "<br><br>");
|
||||||
$thisWizard.find("#spinning_wheel").hide();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$thisWizard.find("#spinning_wheel").hide();
|
||||||
$thisWizard.find("#after_action_message").html(afterActionMsg);
|
$thisWizard.find("#after_action_message").html(afterActionMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user