$Id$
-%>
+</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