luci-base: form.js: fix TableSection descriptions row rendering
In some cases, a table cell at actions column of a descriptions row
may not be rendered. For example, this happens for GridSection when
sorting is disabled:
s = m.section(form.GridSection, 'section_type');
s.sortable = false;
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit da0e974db5
)
This commit is contained in:
parent
1c935a9963
commit
09fcfebe70
1 changed files with 1 additions and 1 deletions
|
@ -2401,7 +2401,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p
|
|||
(typeof(opt.width) == 'number') ? opt.width+'px' : opt.width;
|
||||
}
|
||||
|
||||
if (this.sortable || this.extedit || this.addremove || has_more)
|
||||
if (this.sortable || this.extedit || this.addremove || has_more || has_action)
|
||||
trEl.appendChild(E('div', {
|
||||
'class': 'th cbi-section-table-cell cbi-section-actions'
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue