cloudstack 3.0 UI - VPC - tier - Add VM - zone dropdown - exclude Basic zones (since VPC is not supported in Basic zone).

This commit is contained in:
Jessica Wang 2012-07-12 10:17:13 -07:00
parent 7e73ae8e74
commit 86bbba39cd
1 changed files with 12 additions and 1 deletions

View File

@ -26,7 +26,18 @@
async: false,
success: function(json) {
zoneObjs = json.listzonesresponse.zone;
args.response.success({ data: {zones: zoneObjs}});
var items;
if(args.initArgs.pluginForm != null && args.initArgs.pluginForm.name == "vpcTierInstanceWizard") { //from VPC Tier chart
items = $.grep(zoneObjs, function(zoneObj) {
return zoneObj.networktype == 'Advanced';
});
}
else { //from Instance page
items = zoneObjs;
}
args.response.success({ data: {zones: items}});
}
});
},