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>
24 lines
621 B
JavaScript
24 lines
621 B
JavaScript
'use strict';
|
|
'require baseclass';
|
|
'require form';
|
|
|
|
return baseclass.extend({
|
|
trigger: _('Custom flash interval (kernel: timer)'),
|
|
description: _('The LED blinks with the configured on/off frequency'),
|
|
kernel: true,
|
|
addFormOptions: function(s) {
|
|
var o;
|
|
|
|
o = s.option(form.Value, 'delayon', _('On-State Delay'),
|
|
_('How long (in milliseconds) the LED should be on')
|
|
);
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'timer');
|
|
|
|
o = s.option(form.Value, 'delayoff', _('Off-State Delay'),
|
|
_('How long (in milliseconds) the LED should be off')
|
|
);
|
|
o.modalonly = true;
|
|
o.depends('trigger', 'timer');
|
|
}
|
|
});
|