luci-mod-system: add help text to the led-trigger timer
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 2 Sep 2021 09:45:47 +0000 (11:45 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 3 Sep 2021 08:00:22 +0000 (10:00 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js

index 1ec362b60115c452f9d914d29616ce6c6f503d11..f8b89f1cdd5e93d5afeac01a78433783fe529725 100644 (file)
@@ -8,11 +8,15 @@ return baseclass.extend({
        addFormOptions(s){
                var o;
 
-               o = s.option(form.Value, 'delayon', _('On-State Delay'));
+               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'));
+               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');
        }