mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Zone wizard UI: fix selects
Fix selects being populated twice, due to combination of async calls and non-async operations when re-selecting options in setup zone step.
This commit is contained in:
parent
e3bb5435f4
commit
e23b2ac1fd
@ -326,6 +326,7 @@
|
|||||||
select: function(args) {
|
select: function(args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL('listHypervisors'),
|
url: createURL('listHypervisors'),
|
||||||
|
async: false,
|
||||||
data: { listAll: true },
|
data: { listAll: true },
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
args.response.success({
|
args.response.success({
|
||||||
@ -375,11 +376,11 @@
|
|||||||
selectedNetworkOfferingHavingELB = true;
|
selectedNetworkOfferingHavingELB = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listNetworkOfferings&state=Enabled&guestiptype=Shared"),
|
url: createURL("listNetworkOfferings&state=Enabled&guestiptype=Shared"),
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: true,
|
async: false,
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering;
|
networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering;
|
||||||
var availableNetworkOfferingObjs = [];
|
var availableNetworkOfferingObjs = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user