summaryrefslogtreecommitdiffhomepage
path: root/themes/fledermaus/contrib/media/cbi.js
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-27 20:53:32 +0000
committerSteven Barth <steven@midlink.org>2008-04-27 20:53:32 +0000
commit2724aa14f35dd5ff44dd96b8bdb17965193d700c (patch)
tree398757c77b100b6e9c63bb4729a51506e5656b10 /themes/fledermaus/contrib/media/cbi.js
parentbba585f063ccc1e483346c9b5625d4dcf84d6586 (diff)
* Reworked Theme "Fledermaus"
* Added Freifunk wizard * Added Freifunk iptables rules
Diffstat (limited to 'themes/fledermaus/contrib/media/cbi.js')
-rw-r--r--themes/fledermaus/contrib/media/cbi.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/themes/fledermaus/contrib/media/cbi.js b/themes/fledermaus/contrib/media/cbi.js
index f9e463bca1..a3a47aa45b 100644
--- a/themes/fledermaus/contrib/media/cbi.js
+++ b/themes/fledermaus/contrib/media/cbi.js
@@ -16,15 +16,21 @@ function cbi_d_update(target) {
}
for (var x in cbi_d[target]) {
- for (var i=0; i<cbi_d[target][x].length; i++) {
- document.getElementById(cbi_d[target][x][i]).style.display = "none";
+ 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++) {
- document.getElementById(cbi_d[target][t.value][i]).style.display = "block";
+ var y = document.getElementById(cbi_d[target][t.value][i])
+ if (!y.value) {
+ y.style.display = "table-row";
+ } else {
+ y.style.display = "block";
+ }
}
}
}