summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2022-04-12 10:05:34 +0200
committerFlorian Eckert <fe@dev.tdt.de>2022-04-12 10:05:36 +0200
commit3de544600385ca365c833aec99f89113daa12292 (patch)
tree037c1fb29a87b8f0cd837434b70bd9fc84f66097
parent3ea1d08df8e0bad6cea7b57e4ab161f59bbce7e2 (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>
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js2
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..d6f51d1f9b 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
@@ -89,7 +89,7 @@ return view.extend({
var plugin = plugins[i];
if ( plugin.name === value )
this.map.findElement('id', 'cbid.system.%s.trigger'.format(section))
- .nextElementSibling.innerHTML = plugin.form.description || '';
+ .nextElementSibling.innerHTML = plugin.form.description || ' ';
}
}
o.load = function(section_id) {