2f59866a6c31ea43ffe98330d7c427202d8114f7
[project/luci.git] /
1 'use strict';
2 'require form';
3
4 return L.Class.extend({
5 trigger: _('switch0 (kernel)'),
6 kernel: true,
7 addFormOptions(s){
8 var o;
9
10 o = s.option(form.Value, 'port_mask', _('Switch Port Mask'));
11 o.modalonly = true;
12 o.depends('trigger', 'switch0');
13
14 o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
15 o.modalonly = true;
16 o.depends('trigger', 'switch0');
17 }
18 });