From 6558f66239e0ad9db5c03c9ceef04bd800c6e6d6 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 12 Mar 2012 11:37:36 -0700 Subject: [PATCH] bug 14238: create network offering dialog - remove traffic type dropdown since it includes only one choice. Hardcode it in API call. --- ui/scripts/configuration.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index b47db231a28..4a5c63e806b 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -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,