From: Jo-Philipp Wich Date: Wed, 25 Jan 2017 23:07:26 +0000 (+0100) Subject: luci-base: mvalue: fix column wrapping X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ae7c6f48df6cfcad7dfc3274e0ead272c8d33cfc;p=project%2Fluci.git luci-base: mvalue: fix column wrapping Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/view/cbi/mvalue.htm b/modules/luci-base/luasrc/view/cbi/mvalue.htm index 246ef43aad..db17450d27 100644 --- a/modules/luci-base/luasrc/view/cbi/mvalue.htm +++ b/modules/luci-base/luasrc/view/cbi/mvalue.htm @@ -36,7 +36,7 @@ > <%=pcdata(self.vallist[i])%> - <% if i == self.size then write('
') end %> + <% if self.size and (i % self.size) == 0 then write('
') end %> <% end %> <% end %>