From 9afb9f4c49635bbe9c949459e1ff0e382053071e Mon Sep 17 00:00:00 2001 From: bfederle Date: Fri, 20 Apr 2012 16:05:57 -0700 Subject: [PATCH] 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. --- ui/scripts/zoneWizard.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/scripts/zoneWizard.js b/ui/scripts/zoneWizard.js index b4a03acbfd4..a92ec9f8f86 100644 --- a/ui/scripts/zoneWizard.js +++ b/ui/scripts/zoneWizard.js @@ -326,6 +326,7 @@ select: function(args) { $.ajax({ url: createURL('listHypervisors'), + async: false, data: { listAll: true }, success: function(json) { var items = json.listhypervisorsresponse.hypervisor; @@ -377,11 +378,11 @@ selectedNetworkOfferingHavingELB = true; }); - + $.ajax({ url: createURL("listNetworkOfferings&state=Enabled&guestiptype=Shared"), dataType: "json", - async: true, + async: false, success: function(json) { networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering; var availableNetworkOfferingObjs = [];