Fixed event handlers to be more standards compliant
authorSteven Barth <steven@midlink.org>
Thu, 4 Sep 2008 09:31:54 +0000 (09:31 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 4 Sep 2008 09:31:54 +0000 (09:31 +0000)
(fixed dependency tracking not working correctly on Konqueror and others)

libs/cbi/luasrc/view/cbi/fvalue.htm
libs/cbi/luasrc/view/cbi/lvalue.htm

index f345500..4c977e2 100644 (file)
@@ -13,5 +13,5 @@ $Id$
 
 -%>
 <%+cbi/valueheader%>
-       <input onchange="cbi_d_update(this.id)" type="checkbox"<%= attr("id", cbid) .. attr("name", cbid) .. ifattr(self:cfgvalue(section) == self.enabled, "checked", "checked") %> value="1" />
+       <input onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="checkbox"<%= attr("id", cbid) .. attr("name", cbid) .. ifattr(self:cfgvalue(section) == self.enabled, "checked", "checked") %> value="1" />
 <%+cbi/valuefooter%>
index 92f021e..6d658c2 100644 (file)
@@ -24,7 +24,7 @@ $Id$
        for i, key in pairs(self.keylist) do
        c = c + 1
 %>
-       <input type="radio"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr(self:cfgvalue(section) == key, "checked", "checked") %> />
+       <input onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio"<%= attr("id", cbid..c) .. attr("name", cbid) .. attr("value", key) .. ifattr(self:cfgvalue(section) == key, "checked", "checked") %> />
        <label<%= attr("for", cbid..c) %>><%=self.vallist[i]%></label><br />
 <% if c == self.size then c = 0 %><br />
 <% end end %>