From b5ea85b72484a612449ac09efa57a87043657ee3 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 2 Sep 2021 11:45:47 +0200 Subject: [PATCH] luci-mod-system: add help text to the led-trigger timer Signed-off-by: Florian Eckert --- .../resources/view/system/led-trigger/timer.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js index 1ec362b601..f8b89f1cdd 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js @@ -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'); }