diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-18 19:34:02 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-18 19:34:02 +0100 |
commit | 5eaf4cc489c0e8cd1ffdfde4355866cb5a481d96 (patch) | |
tree | 20390f6213de6b9f5340cd97e760db93298f1d0f /modules/luci-base/luasrc/view/cbi/fvalue.htm | |
parent | 808c1b77f9008bc9f4a760ea0629b3fd4e49fbcb (diff) |
luci-base: cbi: refactor event handling js
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/fvalue.htm')
-rw-r--r-- | modules/luci-base/luasrc/view/cbi/fvalue.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/fvalue.htm b/modules/luci-base/luasrc/view/cbi/fvalue.htm index a1e0808e8d..5eddcf22a1 100644 --- a/modules/luci-base/luasrc/view/cbi/fvalue.htm +++ b/modules/luci-base/luasrc/view/cbi/fvalue.htm @@ -2,7 +2,7 @@ <input type="hidden" value="1"<%= attr("name", "cbi.cbe." .. self.config .. "." .. section .. "." .. self.option) %> /> - <input class="cbi-input-checkbox" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="checkbox"<%= + <input class="cbi-input-checkbox" data-update="click change" type="checkbox"<%= attr("id", cbid) .. attr("name", cbid) .. attr("value", self.enabled or 1) .. ifattr((self:cfgvalue(section) or self.default) == self.enabled, "checked", "checked") %> /> |