diff options
author | Florian Eckert <fe@dev.tdt.de> | 2021-10-28 15:43:50 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-10-28 15:43:50 +0200 |
commit | 5b42cd5b46c32bf168b7156602bfa0ba841904a1 (patch) | |
tree | 333f59a7c88dc18bd789b255d3313cb8bb7dd898 /modules/luci-mod-system/htdocs/luci-static | |
parent | bff0878f9134e58aeec915733173b25071024f64 (diff) |
luci-mod-system: move default option from defaul-on trigger to none trigger
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js | 10 | ||||
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js index 77d62b6a79..2de2743e4c 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js @@ -8,15 +8,5 @@ return baseclass.extend({ kernel: true, addFormOptions(s){ var o; - - o = s.option(form.Flag, 'default', _('Default state')); - o.rmempty = false; - o.depends('trigger', 'default-on'); - o.textvalue = function(section_id) { - var cval = this.cfgvalue(section_id); - if (cval == null) - cval = this.default; - return (cval == this.enabled) ? _('On') : _('Off'); - }; } }); diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js index 5b3b26344e..4b96cf087a 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js @@ -7,5 +7,15 @@ return baseclass.extend({ kernel: true, addFormOptions(s){ var o; + + o = s.option(form.Flag, 'default', _('Default state')); + o.rmempty = false; + o.depends('trigger', 'none'); + o.textvalue = function(section_id) { + var cval = this.cfgvalue(section_id); + if (cval == null) + cval = this.default; + return (cval == this.enabled) ? _('On') : _('Off'); + }; } }); |