blob: c2f20f2c971f5396056fd0ddce1c752c28da8fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
'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');
}
});
|