luci-mod-system: add missing speed_mask option in leds.js 3242/head
authorRichard Yu <yurichard3839@gmail.com>
Mon, 28 Oct 2019 06:57:19 +0000 (14:57 +0800)
committerRichard Yu <yurichard3839@gmail.com>
Mon, 28 Oct 2019 06:57:19 +0000 (14:57 +0800)
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js

index 139db8797c0d8de578819f3315da2500d293ee24..b571032efc93348d1dee64138bca73fa917fc212 100644 (file)
@@ -148,6 +148,11 @@ return L.view.extend({
                o.depends('trigger', 'switch0');
                o.depends('trigger', 'switch1');
 
+               o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
+               o.modalonly = true;
+               o.depends('trigger', 'switch0');
+               o.depends('trigger', 'switch1');
+
                return m.render();
        }
 });