mirror of
https://github.com/openwrt/luci.git
synced 2026-08-28 05:46:45 +04:00
luci-base: cbi: fix event binding js
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user