summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/root
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-15 16:02:47 +0000
committerSteven Barth <steven@midlink.org>2008-06-15 16:02:47 +0000
commit3455ee6d8d9eb3c0ee8459adb586a800dadaf737 (patch)
tree2cc4ac0f6df70f8df1e9afd0faccca1ec9f3299f /libs/cbi/root
parent647bc44868000e97763600dbea176307cd4a3ef5 (diff)
* Added support for htdocs module directory
Diffstat (limited to 'libs/cbi/root')
-rw-r--r--libs/cbi/root/www/luci-static/resources/cbi.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/libs/cbi/root/www/luci-static/resources/cbi.js b/libs/cbi/root/www/luci-static/resources/cbi.js
deleted file mode 100644
index a3a47aa45b..0000000000
--- a/libs/cbi/root/www/luci-static/resources/cbi.js
+++ /dev/null
@@ -1,42 +0,0 @@
-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<cbi_d[target][x].length; i++) {
- var y = document.getElementById(cbi_d[target][x][i])
- y.style.display = "none";
- }
- }
-
- var t = document.getElementById(target);
- if (t && t.value && cbi_d[target][t.value]) {
- for (var i=0; i<cbi_d[target][t.value].length; i++) {
- var y = document.getElementById(cbi_d[target][t.value][i])
- if (!y.value) {
- y.style.display = "table-row";
- } else {
- y.style.display = "block";
- }
- }
- }
-}
-
-function cbi_d_init() {
- for (var x in cbi_d) {
- cbi_d_update(x);
- }
-} \ No newline at end of file