From cd85ef388cfb9134e3de490ff5d395f593783f8c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 9 Feb 2016 16:10:55 +0100 Subject: luci-base: fix dependency handling of optionals (#645) Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/cbi/ucisection.htm | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'modules/luci-base/luasrc/view/cbi') diff --git a/modules/luci-base/luasrc/view/cbi/ucisection.htm b/modules/luci-base/luasrc/view/cbi/ucisection.htm index 3b69f12f2e..ba0cc53e87 100644 --- a/modules/luci-base/luasrc/view/cbi/ucisection.htm +++ b/modules/luci-base/luasrc/view/cbi/ucisection.htm @@ -15,7 +15,7 @@ <% end %> <% if self.error and self.error[section] then -%> -
+
    <% for _, e in ipairs(self.error[section]) do -%>
  • <%- if e == "invalid" then -%> @@ -31,7 +31,7 @@ <%- end %> <% if self.optionals[section] and #self.optionals[section] > 0 or self.dynamic then %> -
    +
    <% if self.dynamic then %> <% if self.optionals[section] and #self.optionals[section] > 0 then %> @@ -49,26 +49,12 @@ <% end %> <% else %> - <% for key, val in pairs(self.optionals[section]) do -%> - + <%- end %> - <% end %>
    -- cgit v1.2.3