Fixed event handlers to be more standards compliant

(fixed dependency tracking not working correctly on Konqueror and others)
This commit is contained in:
Steven Barth 2008-09-04 09:31:54 +00:00
parent 19e22598fd
commit ccc02d4188
2 changed files with 2 additions and 2 deletions

View 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%>

View 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 %>