diff options
author | Florian Eckert <fe@dev.tdt.de> | 2022-04-12 14:11:36 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2022-04-12 14:14:27 +0200 |
commit | b6fb2b16971f80afcfb7c3dd1d257c60f6cced7f (patch) | |
tree | 15252db1eb4a5e132c8c234c91481d57945d2359 /modules/luci-mod-system/htdocs/luci-static/resources/view | |
parent | 2135525b7213220476388fbed0d7525df712a937 (diff) |
luci-mod-system: Set description to blank if the trigger has none
In this case the cbi description div will not be generated and when
switching to another trigger later, attempts to change the description
div contents will fail.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources/view')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js index c0cbd7a4f1..f34a9360c3 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js @@ -97,7 +97,7 @@ return view.extend({ for (var i = 0; i < plugins.length; i++) { var plugin = plugins[i]; if ( plugin.name === trigger) - this.description = plugin.form.description || ''; + this.description = plugin.form.description || ' '; } return trigger; }; |