luci-base: cbi: fix event binding js
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Jan 2016 09:36:04 +0000 (10:36 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Jan 2016 09:36:54 +0000 (10:36 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/htdocs/luci-static/resources/cbi.js

index 55e0c4d0af6c8cfbbdaba1c1b83b2a6b35a4a8fc..3e71f17a6e79138da8a3fb1d1f666141cc3f1f74 100644 (file)
@@ -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);
                }