From deab99a53388ba288590668ff952ea8dae4d6e00 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 11 Jul 2012 11:25:31 -0700 Subject: [PATCH] cloudstack 3.0 UI - VPC - Add Tier dialog - check if any tier supports LB service before populating network offering dropdown. --- ui/scripts/vpc.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 39c3830dc52..480ba28f828 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -1015,7 +1015,26 @@ label: 'label.network.offering', validation: { required: true }, dependsOn: 'zoneId', - select: function(args) { + select: function(args) { + //debugger; + //args.context is null (Brian will fix it to have value) + /* + var networkSupportingLbExists = false; + $.ajax({ + url: createURL('listNetworks'), + data: { + vpcid: args.context.vpc[0].id, + supportedservices: LB + }, + async: false, + success: function(json) { + if(json.listnetworksresponse.network != null && json.listnetworksresponse.network.length > 0) { + networkSupportingLbExists = true; + } + } + }); + */ + $.ajax({ url: createURL('listNetworkOfferings'), data: {