libs/cbi: Fixed dependency JavaScript to match the template fixes
authorSteven Barth <steven@midlink.org>
Sun, 13 Jul 2008 15:33:26 +0000 (15:33 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 13 Jul 2008 15:33:26 +0000 (15:33 +0000)
libs/cbi/htdocs/luci-static/resources/cbi.js

index a3a47aa45b3237621876572d6e6dae3752398047..3abc3a9f521c58ef6aa94f2e571adbce52a272b9 100644 (file)
@@ -26,11 +26,7 @@ function cbi_d_update(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";
-                       }
+                       y.style.display = "block";
                }
        }
 }