diff options
author | Steven Barth <steven@midlink.org> | 2008-09-04 09:31:54 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-04 09:31:54 +0000 |
commit | ccc02d41885eb6aa7cf1749432843078b2c08fb2 (patch) | |
tree | 1eacde3e85f8edf316fdb656b89ea59721d8b63b | |
parent | 19e22598fd5b43a4e3e23e5e0d5f994281024035 (diff) |
Fixed event handlers to be more standards compliant
(fixed dependency tracking not working correctly on Konqueror and others)
-rw-r--r-- | libs/cbi/luasrc/view/cbi/fvalue.htm | 2 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/lvalue.htm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/fvalue.htm b/libs/cbi/luasrc/view/cbi/fvalue.htm index f34550061..4c977e287 100644 --- a/libs/cbi/luasrc/view/cbi/fvalue.htm +++ b/libs/cbi/luasrc/view/cbi/fvalue.htm @@ -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%> diff --git a/libs/cbi/luasrc/view/cbi/lvalue.htm b/libs/cbi/luasrc/view/cbi/lvalue.htm index 92f021e06..6d658c22d 100644 --- a/libs/cbi/luasrc/view/cbi/lvalue.htm +++ b/libs/cbi/luasrc/view/cbi/lvalue.htm @@ -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 %> |