mirror of
https://github.com/openwrt/luci.git
synced 2025-04-04 02:15:23 +00:00
20 lines
424 B
JavaScript
20 lines
424 B
JavaScript
'use strict';
|
|
'require baseclass';
|
|
'require form';
|
|
|
|
return baseclass.extend({
|
|
trigger: _('Switch support (kernel: switch1)'),
|
|
kernel: true,
|
|
addFormOptions(s){
|
|
var o;
|
|
|
|
o = s.option(form.Value, 'port_mask', _('Switch Port Mask'));
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'switch1');
|
|
|
|
o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'switch1');
|
|
}
|
|
});
|