From 3455ee6d8d9eb3c0ee8459adb586a800dadaf737 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Jun 2008 16:02:47 +0000 Subject: * Added support for htdocs module directory --- libs/cbi/htdocs/luci-static/resources/cbi.js | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 libs/cbi/htdocs/luci-static/resources/cbi.js (limited to 'libs/cbi/htdocs') diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js new file mode 100644 index 000000000..a3a47aa45 --- /dev/null +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -0,0 +1,42 @@ +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] = []; + } + cbi_d[target][value].push(field); +} + +function cbi_d_update(target) { + if (!cbi_d[target]) { + return; + } + + for (var x in cbi_d[target]) { + for (var i=0; i