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
3ea1d08df8
commit
3de5446003
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ return view.extend({
|
||||||
var plugin = plugins[i];
|
var plugin = plugins[i];
|
||||||
if ( plugin.name === value )
|
if ( plugin.name === value )
|
||||||
this.map.findElement('id', 'cbid.system.%s.trigger'.format(section))
|
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) {
|
o.load = function(section_id) {
|
||||||
|
|
Loading…
Reference in a new issue