CLOUDSTACK-4142: UI > Infrastructure > zone > physical network > guest > edit guest network > network offering dropdown > get info of current network offering from listNetworks API response instead of listNetworkOfferings API response.

This commit is contained in:
Jessica Wang 2013-08-14 13:39:36 -07:00
parent 30484fb7f8
commit cb609d24d6
1 changed files with 7 additions and 14 deletions

View File

@ -1723,20 +1723,13 @@
});
}
});
$.ajax({
url: createURL("listNetworkOfferings&id=" + selectedGuestNetworkObj.networkofferingid), //include currently selected network offeirng to dropdown
dataType: "json",
async: false,
success: function(json) {
var networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering;
$(networkOfferingObjs).each(function() {
items.push({
id: this.id,
description: this.displaytext
});
});
}
});
//include currently selected network offeirng to dropdown
items.push({
id: selectedGuestNetworkObj.networkofferingid,
description: selectedGuestNetworkObj.networkofferingdisplaytext
});
args.response.success({
data: items
});