libs/cbi: Fixed dependency JavaScript to match the template fixes

This commit is contained in:
Steven Barth 2008-07-13 15:33:26 +00:00
parent 83bee1908f
commit 8f2bbc4ce0

View file

@ -26,11 +26,7 @@ function cbi_d_update(target) {
if (t && t.value && cbi_d[target][t.value]) { if (t && t.value && cbi_d[target][t.value]) {
for (var i=0; i<cbi_d[target][t.value].length; i++) { for (var i=0; i<cbi_d[target][t.value].length; i++) {
var y = document.getElementById(cbi_d[target][t.value][i]) var y = document.getElementById(cbi_d[target][t.value][i])
if (!y.value) { y.style.display = "block";
y.style.display = "table-row";
} else {
y.style.display = "block";
}
} }
} }
} }