From 6f688a32656c09407d31a45b8161cbd7f17dba48 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 Jan 2016 10:36:04 +0100 Subject: luci-base: cbi: fix event binding js Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/cbi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-base') 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); } -- cgit v1.2.3