Updated Branches: refs/heads/master 67beef15c -> da6177611
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. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/da617761 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/da617761 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/da617761 Branch: refs/heads/master Commit: da6177611161e2342c6edf8339b7b4eea2f9ba07 Parents: 67beef1 Author: Jessica Wang <[email protected]> Authored: Wed Aug 14 13:39:36 2013 -0700 Committer: Jessica Wang <[email protected]> Committed: Wed Aug 14 13:41:23 2013 -0700 ---------------------------------------------------------------------- ui/scripts/system.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/da617761/ui/scripts/system.js ---------------------------------------------------------------------- diff --git a/ui/scripts/system.js b/ui/scripts/system.js index d6c52cf..5ce32bc 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 });
