bug 14238: create network offering dialog - remove traffic type dropdown since it includes only one choice. Hardcode it in API call.

This commit is contained in:
Jessica Wang 2012-03-12 11:37:36 -07:00
parent 251af27a7a
commit 6558f66239

View File

@ -1055,6 +1055,7 @@
networkRate: { label: 'label.network.rate' },
/*
trafficType: {
label: 'label.traffic.type', validation: { required: true },
select: function(args) {
@ -1065,6 +1066,7 @@
});
}
},
*/
guestIpType: {
label: 'label.guest.type',
@ -1402,7 +1404,9 @@
if(args.$form.find('.form-item[rel=serviceOfferingId]').css("display") == "none")
delete inputData.serviceOfferingId;
inputData['traffictype'] = 'GUEST'; //traffic type dropdown has been removed since it has only one option ('Guest'). Hardcode traffic type value here.
$.ajax({
url: createURL('createNetworkOffering'),
data: inputData,