From: Steven Barth Date: Tue, 16 Sep 2008 15:51:11 +0000 (+0000) Subject: More IE compatibility fixes X-Git-Tag: 0.9.0~1276 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=38e60dcf9bbd7208ae15282c333d2f1f7ea4d0a3;p=oweals%2Fluci.git More IE compatibility fixes --- diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index 227e33269..f70818e16 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -1,6 +1,6 @@ var cbi_d = []; -function cbi_d_add(field, dep) { +function cbi_d_add(field, dep, next) { var obj = document.getElementById(field); if (obj) { var entry @@ -12,10 +12,10 @@ function cbi_d_add(field, dep) { } if (!entry) { entry = { - "id": field, "node": obj, - "parent": obj.parentNode, - "next": obj.nextSibling, + "id": field, + "parent": obj.parentNode.id, + "next": next, "deps": [] }; cbi_d.unshift(entry); @@ -57,16 +57,20 @@ function cbi_d_update() { var state = false; for (var i=0; i + +
">
<% if #self.deps > 0 then -%> @@ -26,7 +28,7 @@ $Id$ <%- end -%> - }); + }, "cbip-<%=self.config.."-"..section.."-"..self.option%>"); <%- end %> -<%- 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$ -%> -"> + +
"> 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$
<% if #self.deps > 0 then -%> - -<%- 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 -%> <%=self.title%> <%- end %> -
+
<% self:render_children(1, scope or {}) %>

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$ <% end %> <% else %> - <% for key, val in pairs(self.optionals[section]) do -%> @@ -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 -%>