From e23b2ac1fd961372d930c87bad598905f4c4bfa8 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 c0eb72e3470..6985c80fc60 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) { args.response.success({ @@ -375,11 +376,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 = [];