From: Anton Kikin Date: Sun, 19 Apr 2020 02:55:03 +0000 (+0300) Subject: luci-base: form.js: fix TableSection descriptions row rendering X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=da0e974db5865daf6d634ae5f7649f5b5fc2ef31;p=project%2Fluci.git 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 --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index c65cb04b13..400ca036a2 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -2421,7 +2421,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' }));