From 97ce1ad8adf935e2aa0d1b13f07b16d2d950053f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 17 Aug 2008 18:32:53 +0000 Subject: Preparing rewrite of WiFi configuration --- libs/cbi/htdocs/luci-static/resources/cbi.js | 86 ++++++++++++++++------------ 1 file changed, 48 insertions(+), 38 deletions(-) (limited to 'libs/cbi/htdocs/luci-static') diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index 78a9e90bf6..d0e31e483a 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -1,38 +1,30 @@ -var cbi_d = {}; +var cbi_d = []; -function cbi_d_add(field, target, value) { - if (!cbi_d[target]) { - cbi_d[target] = {}; - } - if (!cbi_d[target][value]) { - cbi_d[target][value] = []; - } - +function cbi_d_add(field, dep) { var obj = document.getElementById(field); if (obj) { - var entry = { - "node": obj, - "parent": obj.parentNode, - "next": obj.nextSibling - } - cbi_d[target][value].unshift(entry); - } -} - -function cbi_d_update(target) { - if (!cbi_d[target]) { - return; - } - - for (var x in cbi_d[target]) { - for (var i=0; i