cloudstack 3.0 UI - VPC - Add Tier dialog - check if any tier supports LB service before populating network offering dropdown.

This commit is contained in:
Jessica Wang 2012-07-11 11:25:31 -07:00
parent b8b7d06f15
commit deab99a533
1 changed files with 20 additions and 1 deletions

View File

@ -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: {