luci-base: form.js: fix anonymous section table titles
When no section title is defined, the table renderer is supposed to use
the uci section id as fallback when the table section is not declared
to be anonymous.
Fixes: #3147
Fixes: a90bf384b
("luci-base: form.js: harmonize title property handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
5cfad8d65b
commit
e7ca163d7c
1 changed files with 3 additions and 0 deletions
|
@ -1031,6 +1031,9 @@ var CBITableSection = CBITypedSection.extend({
|
|||
for (var i = 0; i < nodes.length; i++) {
|
||||
var sectionname = this.titleFn('sectiontitle', cfgsections[i]);
|
||||
|
||||
if (sectionname == null)
|
||||
sectionname = cfgsections[i];
|
||||
|
||||
var trEl = E('div', {
|
||||
'id': 'cbi-%s-%s'.format(config_name, cfgsections[i]),
|
||||
'class': 'tr cbi-section-table-row',
|
||||
|
|
Loading…
Reference in a new issue