* luci/libs/cbi: improved error integration with uvl
[project/luci.git] / libs / cbi / luasrc / view / cbi / cell_valuefooter.htm
index 94121424655e9de498e2b57a3da40a38df2ecfcf..6dd5667146d35e526a998b38d5545c9d41b092b0 100644 (file)
@@ -12,20 +12,20 @@ You may obtain a copy of the License at
 $Id$
 
 -%>
-
-       <% if self.tag_error[section] then -%>
-               <div class="cbi-error"><%=self.tag_error[section]%></div>
-       <%- elseif self.tag_invalid[section] then -%>
-               <div class="cbi-error"><%:cbi_invalid%></div>
-       <%- elseif self.tag_missing[section] then -%>
-               <div class="cbi-error"><%:cbi_missing%></div>
-       <%- end %>
 </td>
 
 <% if #self.deps > 0 then -%>
        <script type="text/javascript">
                <% for j, d in ipairs(self.deps) do -%>
-                       cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option%>", "cbid.<%=self.config.."."..section.."."..d.field%>", "<%=d.value%>");
+                       cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", {
+               <%-
+                       for k,v in pairs(d.deps) do
+               -%>
+                       <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%>,
+               <%-
+                       end
+               -%>
+                       });
                <%- end %>
        </script>
 <%- end %>