From 6b58931aaef98d383f7900dac55670ebf941efa1 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 3abd6741a9d..05114e16eb1 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 = [];