$Id$
-%>
-
- <% if self.tag_error[section] then -%>
- <div class="cbi-error"><%=self.tag_error[section]%></div>
- <%- elseif self.tag_reqerror[section] then -%>
- <div class="cbi-error"><%:cbi_reqerror%></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 %>
+</div>
+<div id="cbip-<%=self.config.."-"..section.."-"..self.option%>"></div>
</td>
<% if #self.deps > 0 then -%>
<%-
for k,v in pairs(d.deps) do
-%>
- <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%>,
+ <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%>
+ <%-if next(d.deps, k) then-%>,<%-end-%>
<%-
end
-%>
- });
+ }, "cbip-<%=self.config.."-"..section.."-"..self.option%>");
<%- end %>
</script>
-<%- end %>
+<%- end %>
\ No newline at end of file