From b8124f18f88fe11158eb122a1e362cfbd512cf4f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 27 May 2008 08:14:24 +0000 Subject: * Separated the MVC-Webframework from core * Separated i18n from core to prepare translations --- web/root/www/resources/cbi.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 web/root/www/resources/cbi.js (limited to 'web/root/www/resources/cbi.js') diff --git a/web/root/www/resources/cbi.js b/web/root/www/resources/cbi.js new file mode 100644 index 0000000000..a3a47aa45b --- /dev/null +++ b/web/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