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=0a6507d7606c6769f16bd32cb9252630d5bcffa8;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 %>