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 b6fb2b1697
)
This commit is contained in:
parent
0dedf21108
commit
0c0cf782f3
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ return view.extend({
|
||||||
for (var i = 0; i < plugins.length; i++) {
|
for (var i = 0; i < plugins.length; i++) {
|
||||||
var plugin = plugins[i];
|
var plugin = plugins[i];
|
||||||
if ( plugin.name === trigger)
|
if ( plugin.name === trigger)
|
||||||
this.description = plugin.form.description || '';
|
this.description = plugin.form.description || ' ';
|
||||||
}
|
}
|
||||||
return trigger;
|
return trigger;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue