From 328c83ce3b74a09a3904352cfec2089b95770bd6 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 25 May 2008 17:41:51 +0000 Subject: * core: Fixed a bug in the dispatcher * core: Move cbi.js to general resource directory * core: Removed Freifunk references * core: Updated Fledermaus theme --- core/root/www/resources/cbi.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 core/root/www/resources/cbi.js (limited to 'core/root/www') diff --git a/core/root/www/resources/cbi.js b/core/root/www/resources/cbi.js new file mode 100644 index 0000000000..a3a47aa45b --- /dev/null +++ b/core/root/www/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