diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-19 10:36:04 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2016-01-19 10:36:54 +0100 |
commit | 6f688a32656c09407d31a45b8161cbd7f17dba48 (patch) | |
tree | f62495cfd26c5535a827a356e8cc9985b3d997cd /modules | |
parent | 3f5fae222390735c7d44e12ef9ea18c40229f326 (diff) |
luci-base: cbi: fix event binding js
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 55e0c4d0a..3e71f17a6 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); } |