diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-05-16 11:47:45 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-05-16 13:35:18 +0200 |
commit | 818776451d96e8f1a187eafca4a5ebbf0770fbde (patch) | |
tree | 73c82e38486c37a4dce02da41f72ce3fbeed4e77 /modules/luci-base/htdocs/luci-static | |
parent | 733ee9a7b6312e9b5fe2a4aa8107baf5379602ab (diff) |
luci-base: form.js: allow overriding section placeholder of TableSections
The existing implementation was hardcoding the empty TableSection placeholder
instead of invoking `renderSectionPlaceholder()` which might be overridden by
various forms.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 62fcc903e8..eb7a2572d4 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -2583,8 +2583,7 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p if (nodes.length == 0) tableEl.appendChild(E('tr', { 'class': 'tr cbi-section-table-row placeholder' }, - E('td', { 'class': 'td' }, - E('em', {}, _('This section contains no values yet'))))); + E('td', { 'class': 'td' }, this.renderSectionPlaceholder()))); sectionEl.appendChild(tableEl); |