From 8687547e47b7c90099013b903e89113300903d27 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 29 May 2008 18:27:12 +0000 Subject: * Bugfixes * Moved cbi.js into the right directory * Added more debugging to dispatcher * Introduced about page --- libs/cbi/root/www/luci-static/resources/cbi.js | 42 ++++++++++++++++++++++++++ libs/cbi/root/www/resources/cbi.js | 42 -------------------------- libs/web/luasrc/dispatcher.lua | 9 +++++- 3 files changed, 50 insertions(+), 43 deletions(-) create mode 100644 libs/cbi/root/www/luci-static/resources/cbi.js delete mode 100644 libs/cbi/root/www/resources/cbi.js (limited to 'libs') diff --git a/libs/cbi/root/www/luci-static/resources/cbi.js b/libs/cbi/root/www/luci-static/resources/cbi.js new file mode 100644 index 0000000000..a3a47aa45b --- /dev/null +++ b/libs/cbi/root/www/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