From cb609d24d6c499a4c4d226a2c19e8f8bb2df58fa Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 14 Aug 2013 13:39:36 -0700 Subject: [PATCH] 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. --- ui/scripts/system.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index d6c52cfa8b0..5ce32bcc7da 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -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 });