tblsection.patch 505 B

12345678910111213141516171819
  1. --- a/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
  2. +++ b/package/feeds/luci/luci-compat/luasrc/view/cbi/tblsection.htm
  3. @@ -123,6 +123,7 @@ <h3><%=self.title%></h3>
  4. local isempty, section, i, k = true, nil, nil
  5. for i, k in ipairs(self:cfgsections()) do
  6. + if i <= 100 then
  7. isempty = false
  8. section = k
  9. @@ -165,6 +166,8 @@ <h3><%=self.title%></h3>
  10. </td>
  11. <%- end -%>
  12. </tr>
  13. + <%- i=i+1 -%>
  14. + <%- end -%>
  15. <%- end -%>
  16. <%- if isempty then -%>