diff options
author | Steven Barth <steven@midlink.org> | 2008-09-16 15:51:11 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-16 15:51:11 +0000 |
commit | 38e60dcf9bbd7208ae15282c333d2f1f7ea4d0a3 (patch) | |
tree | 52d5442a14eeed72ba78e142a90c7502e66e392e /libs/cbi/luasrc | |
parent | 7f0ff5c6554d9165645af67a6b8a252de67ffa5c (diff) |
More IE compatibility fixes
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/cell_valuefooter.htm | 6 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/cell_valueheader.htm | 3 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/full_valuefooter.htm | 6 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/nullsection.htm | 2 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/ucisection.htm | 5 |
5 files changed, 13 insertions, 9 deletions
diff --git a/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm b/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm index e4f798294..c325e49cb 100644 --- a/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/cell_valuefooter.htm @@ -12,6 +12,8 @@ You may obtain a copy of the License at $Id$ -%> +</div> +<div id="cbip-<%=self.config.."-"..section.."-"..self.option%>"></div> </td> <% if #self.deps > 0 then -%> @@ -26,7 +28,7 @@ $Id$ <%- end -%> - }); + }, "cbip-<%=self.config.."-"..section.."-"..self.option%>"); <%- end %> </script> -<%- end %> +<%- end %>
\ No newline at end of file diff --git a/libs/cbi/luasrc/view/cbi/cell_valueheader.htm b/libs/cbi/luasrc/view/cbi/cell_valueheader.htm index dda17463c..0f24f1f76 100644 --- a/libs/cbi/luasrc/view/cbi/cell_valueheader.htm +++ b/libs/cbi/luasrc/view/cbi/cell_valueheader.htm @@ -13,4 +13,5 @@ $Id$ -%> -<td class="cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %>" id="cbi-<%=self.config.."-"..section.."-"..self.option%>"> +<td class="cbi-value-field<% if self.error and self.error[section] then %> cbi-value-error<% end %>"> +<div id="cbi-<%=self.config.."-"..section.."-"..self.option%>"> diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm index d05714033..a9596441b 100644 --- a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm @@ -28,7 +28,7 @@ $Id$ </div> <% if #self.deps > 0 then -%> - <script type="text/javascript"> + <script type="text/javascript" id="cbip-<%=self.config.."-"..section.."-"..self.option%>"> <% for j, d in ipairs(self.deps) do -%> cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", { <%- @@ -39,7 +39,7 @@ $Id$ <%- end -%> - }); + }, "cbip-<%=self.config.."-"..section.."-"..self.option%>"); <%- end %> </script> -<%- end %> +<%- end %>
\ No newline at end of file diff --git a/libs/cbi/luasrc/view/cbi/nullsection.htm b/libs/cbi/luasrc/view/cbi/nullsection.htm index 476db96d8..9520b47ca 100644 --- a/libs/cbi/luasrc/view/cbi/nullsection.htm +++ b/libs/cbi/luasrc/view/cbi/nullsection.htm @@ -16,7 +16,7 @@ $Id$ <% if self.title and #self.title > 0 then -%> <legend><%=self.title%></legend> <%- end %> - <div class="cbi-section-node"> + <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=tostring(self):sub(8)%>"> <% self:render_children(1, scope or {}) %> </div> <br /> diff --git a/libs/cbi/luasrc/view/cbi/ucisection.htm b/libs/cbi/luasrc/view/cbi/ucisection.htm index 5023f6a2f..5504a7476 100644 --- a/libs/cbi/luasrc/view/cbi/ucisection.htm +++ b/libs/cbi/luasrc/view/cbi/ucisection.htm @@ -40,7 +40,7 @@ $Id$ </script> <% end %> <% else %> - <select name="cbi.opt.<%=self.config%>.<%=section%>"> + <select id="cbi.opt.<%=self.config%>.<%=section%>" name="cbi.opt.<%=self.config%>.<%=section%>"> <option><%:cbi_addopt%></option> <% for key, val in pairs(self.optionals[section]) do -%> <option id="cbi-<%=self.config.."-"..section.."-"..val.option%>" value="<%=val.option%>"><%=striptags(val.title)%></option> @@ -52,7 +52,8 @@ $Id$ <%- 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 -%> |