luci-app-banip: sync with forthcoming banIP 1.0
[project/luci.git] / modules / luci-mod-system / htdocs / luci-static / resources / view / system / led-trigger / timer.js
1 'use strict';
2 'require baseclass';
3 'require form';
4
5 return baseclass.extend({
6 trigger: _('Custom flash interval (kernel: timer)'),
7 description: _('The LED blinks with the configured on/off frequency'),
8 kernel: true,
9 addFormOptions: function(s) {
10 var o;
11
12 o = s.option(form.Value, 'delayon', _('On-State Delay'),
13 _('How long (in milliseconds) the LED should be on')
14 );
15 o.modalonly = true;
16 o.depends('trigger', 'timer');
17
18 o = s.option(form.Value, 'delayoff', _('Off-State Delay'),
19 _('How long (in milliseconds) the LED should be off')
20 );
21 o.modalonly = true;
22 o.depends('trigger', 'timer');
23 }
24 });