From: Florian Eckert Date: Wed, 14 Mar 2018 15:03:55 +0000 (+0100) Subject: luci-base: fix colspans calculation in tblsection X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F1697%2Fhead;p=oweals%2Fluci.git luci-base: fix colspans calculation in tblsection Signed-off-by: Florian Eckert --- diff --git a/modules/luci-base/luasrc/view/cbi/tblsection.htm b/modules/luci-base/luasrc/view/cbi/tblsection.htm index 26d13f937..3cb87563f 100644 --- a/modules/luci-base/luasrc/view/cbi/tblsection.htm +++ b/modules/luci-base/luasrc/view/cbi/tblsection.htm @@ -35,7 +35,7 @@ end <%- else -%>   <%- end -%> - <%- end -%> + <%- count = count +1; end -%> <%- for i, k in pairs(self.children) do if not k.optional then -%> > <%- if k.titleref then -%><%- end -%> @@ -44,7 +44,7 @@ end <%- count = count + 1; end; end; if self.sortable then -%> <%:Sort%> - <%- end; if self.extedit or self.addremove then -%> + <%- count = count + 1; end; if self.extedit or self.addremove then -%>   <%- count = count + 1; end -%>