luci-mod-system: Set description to blank if the trigger has none
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 12 Apr 2022 12:11:36 +0000 (14:11 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 12 Apr 2022 12:20:06 +0000 (14:20 +0200)
commit0c0cf782f3003e5f753befdf59d8fc19561ecbf8
treec513e00b1338e1d4bd23c7ff5d956adb1ec9cc5e
parent0dedf2110803058b2466dec45243307fd8404bdb
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>
(cherry picked from commit b6fb2b16971f80afcfb7c3dd1d257c60f6cced7f)
modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js