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>
This commit is contained in:
parent
2135525b72
commit
b6fb2b1697
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue