Internet suXplorer JavaScript compatibility fixes
authorSteven Barth <steven@midlink.org>
Tue, 16 Sep 2008 10:09:14 +0000 (10:09 +0000)
committerSteven Barth <steven@midlink.org>
Tue, 16 Sep 2008 10:09:14 +0000 (10:09 +0000)
libs/cbi/luasrc/view/cbi/cell_valuefooter.htm
libs/cbi/luasrc/view/cbi/dynlist.htm
libs/cbi/luasrc/view/cbi/full_valuefooter.htm
libs/cbi/luasrc/view/cbi/ucisection.htm
libs/cbi/luasrc/view/cbi/value.htm

index 6dd5667146d35e526a998b38d5545c9d41b092b0..e4f7982942d3e84c2938ad7ba33c2cfdafdc6af3 100644 (file)
@@ -21,7 +21,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
                -%>
index 1cfd6f03e5295a1dbe1e623608906aa166693e7a..fb76e494d476ace87e064824f77ad909362d9844 100644 (file)
@@ -30,7 +30,8 @@ $Id$
                        <%-
                                for i, k in ipairs(self.keylist) do
                        -%>
-                               <%-=string.format("%q", k) .. ":" .. string.format("%q", self.vallist[i])-%>,
+                               <%-=string.format("%q", k) .. ":" .. string.format("%q", self.vallist[i])-%>
+                               <%-if i<#self.keylist then-%>,<%-end-%>
                        <%-
                                end
                        -%>
index e42043e78ab3060ecdfcc83fe044932b39fa4029..d05714033c31bb270adaade76ee5c1225aba0e62 100644 (file)
@@ -34,7 +34,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
                -%>
index e703053e135193c2de1cca40fb20d6f3b0c4dddf..5023f6a2f399c9763bd5ee0305ba5baefc3bccbc 100644 (file)
@@ -31,7 +31,8 @@ $Id$
                                <%-
                                        for i, val in pairs(self.optionals[section]) do
                                -%>
-                                       <%-=string.format("%q", val.option) .. ":" .. string.format("%q", striptags(val.title))-%>,
+                                       <%-=string.format("%q", val.option) .. ":" .. string.format("%q", striptags(val.title))-%>
+                                       <%-if next(self.optionals[section], i) then-%>,<%-end-%>
                                <%-
                                        end
                                -%>
index d85fa81d9dd10d5f1cf66d50719089c7a99e7342..9ffefc423f052f1597334aaf8349212b732897ec 100644 (file)
@@ -20,7 +20,8 @@ $Id$
                <%-
                        for i, k in ipairs(self.keylist) do
                -%>
-                       <%-=string.format("%q", k) .. ":" .. string.format("%q", self.vallist[i])-%>,
+                       <%-=string.format("%q", k) .. ":" .. string.format("%q", self.vallist[i])-%>
+                       <%-if i<#self.keylist then-%>,<%-end-%>
                <%-
                        end
                -%>