From 70783f5802a7231beb151c1a40ed741c25be7fe1 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 14 Mar 2018 16:03:55 +0100 Subject: luci-base: fix colspans calculation in tblsection Signed-off-by: Florian Eckert --- modules/luci-base/luasrc/view/cbi/tblsection.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/luasrc/view/cbi/tblsection.htm b/modules/luci-base/luasrc/view/cbi/tblsection.htm index 26d13f9372..3cb87563f1 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 -%> -- cgit v1.2.3