luci-base: cbi: fix event binding js
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
3f5fae2223
commit
6f688a3265
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue