summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorAnton Kikin <a.kikin@tano-systems.com>2020-04-19 05:55:03 +0300
committerAnton Kikin <a.kikin@tano-systems.com>2020-04-19 13:56:24 +0300
commitda0e974db5865daf6d634ae5f7649f5b5fc2ef31 (patch)
treebd6a04b5b2981b276e049e5872ce23ca464b426b /modules/luci-base/htdocs/luci-static/resources
parentf76a020db1936e66551e1e33c6bbc1fb6bc727e3 (diff)
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>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
1 files changed, 1 insertions, 1 deletions
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'
}));