Skip to content

Commit cb609d2

Browse files
author
Jessica Wang
committed
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.
1 parent 30484fb commit cb609d2

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,20 +1723,13 @@
17231723
});
17241724
}
17251725
});
1726-
$.ajax({
1727-
url: createURL("listNetworkOfferings&id=" + selectedGuestNetworkObj.networkofferingid), //include currently selected network offeirng to dropdown
1728-
dataType: "json",
1729-
async: false,
1730-
success: function(json) {
1731-
var networkOfferingObjs = json.listnetworkofferingsresponse.networkoffering;
1732-
$(networkOfferingObjs).each(function() {
1733-
items.push({
1734-
id: this.id,
1735-
description: this.displaytext
1736-
});
1737-
});
1738-
}
1739-
});
1726+
1727+
//include currently selected network offeirng to dropdown
1728+
items.push({
1729+
id: selectedGuestNetworkObj.networkofferingid,
1730+
description: selectedGuestNetworkObj.networkofferingdisplaytext
1731+
});
1732+
17401733
args.response.success({
17411734
data: items
17421735
});

0 commit comments

Comments
 (0)