From: Jo-Philipp Wich Date: Tue, 19 Jan 2016 09:36:04 +0000 (+0100) Subject: luci-base: cbi: fix event binding js X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6f688a32656c09407d31a45b8161cbd7f17dba48;p=project%2Fluci.git luci-base: cbi: fix event binding js Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 55e0c4d0af..3e71f17a6e 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -515,10 +515,10 @@ function cbi_init() { } } - nodes = document.querySelectorAll('[data-change]'); + nodes = document.querySelectorAll('[data-update]'); for (var i = 0, node; (node = nodes[i]) !== undefined; i++) { - var events = node.getAttribute('data-change').split(' '); + var events = node.getAttribute('data-update').split(' '); for (var j = 0, event; (event = events[j]) !== undefined; j++) { cbi_bind(node, event, cbi_d_update); }