summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-30 21:09:19 +0100
committerGitHub <noreply@github.com>2020-10-30 21:09:19 +0100
commitca86f8d09efccc64dded2d9569395829df06af4e (patch)
tree225c2d2368123ab2d8fab4fe380c847df1959264 /modules/luci-base
parent3415fffbc20c9fcdf18d48f04bb84f0fa6baacdc (diff)
parentb03a508c6c5923e18ade8e8fce256cefbd5ad302 (diff)
Merge pull request #4538 from oldium/fix-titles
luci-base/luci-compat: Replace legend element with h3.
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js4
1 files changed, 2 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 568a4abb6..612c8ff94 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -2219,7 +2219,7 @@ var CBITypedSection = CBIAbstractSection.extend(/** @lends LuCI.form.TypedSectio
});
if (this.title != null && this.title != '')
- sectionEl.appendChild(E('legend', {}, this.title));
+ sectionEl.appendChild(E('h3', {}, this.title));
if (this.description != null && this.description != '')
sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));
@@ -3138,7 +3138,7 @@ var CBINamedSection = CBIAbstractSection.extend(/** @lends LuCI.form.NamedSectio
});
if (typeof(this.title) === 'string' && this.title !== '')
- sectionEl.appendChild(E('legend', {}, this.title));
+ sectionEl.appendChild(E('h3', {}, this.title));
if (typeof(this.description) === 'string' && this.description !== '')
sectionEl.appendChild(E('div', { 'class': 'cbi-section-descr' }, this.description));