From 4775d1ad226b39eb4b0981c89f2407c91a8c3102 Mon Sep 17 00:00:00 2001 From: Oldřich Jedlička Date: Sat, 24 Oct 2020 19:18:20 +0200 Subject: luci-compat: Replace legend element with h3. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The legend HTML element is allowed only as first element in fieldset, so use h3 instead, which is rendered the same within themes. Fixed #3149. Signed-off-by: Oldřich Jedlička --- modules/luci-compat/luasrc/view/cbi/nsection.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-compat/luasrc/view/cbi/nsection.htm') diff --git a/modules/luci-compat/luasrc/view/cbi/nsection.htm b/modules/luci-compat/luasrc/view/cbi/nsection.htm index faceffeedf..511a59b6f3 100644 --- a/modules/luci-compat/luasrc/view/cbi/nsection.htm +++ b/modules/luci-compat/luasrc/view/cbi/nsection.htm @@ -1,7 +1,7 @@ <% if self:cfgvalue(self.section) then section = self.section %>
<% if self.title and #self.title > 0 then -%> - <%=self.title%> +

<%=self.title%>

<%- end %> <% if self.description and #self.description > 0 then -%>
<%=self.description%>
@@ -19,7 +19,7 @@ <% if self.template_addremove then include(self.template_addremove) else -%>
<% if self.title and #self.title > 0 then -%> - <%=self.title%> +

<%=self.title%>

<%- end %>
<%=self.description%>
-- cgit v1.2.3