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:
bfederle 2012-04-20 16:05:57 -07:00
parent e3bb5435f4
commit e23b2ac1fd

View File

@ -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 = [];