revert 12ca1d9102 since it's a partial UI change.

This commit is contained in:
Jessica Wang 2013-08-10 13:26:48 -07:00
parent 4bdaffb66a
commit a6c6f4851b
1 changed files with 6 additions and 25 deletions

View File

@ -295,36 +295,17 @@
var trafficData = $trafficType.data('traffic-type-data') ?
$trafficType.data('traffic-type-data') : {};
var hypervisor = getData($trafficType.closest('.zone-wizard')).zone.hypervisor;
var fields = {
label: {
label: hypervisor + ' ' + _l('label.traffic.label'),
defaultValue: trafficData.label
}
};
if (hypervisor === 'VMware') {
$.extend(fields, {
vlanid: { label: 'VLAN ID' },
switchType: {
label: 'label.switch.type',
select: function(args) {
args.response.success({
data: [
{ id: 'vmwaresvs', description: 'VMware SVS' },
{ id: 'vmwaredvs', description: 'VMware DVS' },
{ id: 'nexusdvs', description: 'Nexus DVS' }
]
});
}
}
});
}
cloudStack.dialog.createForm({
form: {
title: _l('label.edit.traffic.type'),
desc: _l('message.edit.traffic.type'),
fields: fields
fields: {
label: {
label: hypervisor + ' ' + _l('label.traffic.label'),
defaultValue: trafficData.label
}
}
},
after: function(args) {