Also convert ES6 to ES5 syntax while we're at it.
Fixes: #5476
Fixes: 5b42cd5b46 ("luci-mod-system: move default option from defaul-on trigger to none trigger")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
'use strict';
'require baseclass';
-'require form';
return baseclass.extend({
trigger: _('Always on (kernel: default-on)'),
description: _('The LED is always in default state on.'),
kernel: true,
- addFormOptions(s){
- var o;
- }
+ addFormOptions: function(s) {}
});
description: _('The LED flashes to simulate actual heart beat.') +
_('The frequency is in direct proportion to 1-minute average CPU load.'),
kernel: true,
- addFormOptions(s){
- var o;
- }
+ addFormOptions: function(s) {}
});
trigger: _("Network device activity (kernel: netdev)"),
description: _('The LED flashes with link status and activity on the configured interface.'),
kernel: true,
- addFormOptions(s){
+ addFormOptions: function(s) {
var o;
o = s.option(widgets.DeviceSelect, '_net_dev', _('Device'));
'use strict';
+'require form';
'require baseclass';
return baseclass.extend({
trigger: _('Always off (kernel: none)'),
description: _('The LED is always in default state off.'),
kernel: true,
- addFormOptions(s){
+ addFormOptions: function(s) {
var o;
o = s.option(form.Flag, 'default', _('Default state'));
trigger: _('Custom flash interval (kernel: timer)'),
description: _('The LED blinks with the configured on/off frequency'),
kernel: true,
- addFormOptions(s){
+ addFormOptions: function(s) {
var o;
o = s.option(form.Value, 'delayon', _('On-State Delay'),