why wouldn't we want to hide the whole thing rather than leave a big blank gap?
[freeside.git] / httemplate / edit / cust_main.cgi
index 877d1e8..d203e00 100755 (executable)
 
 <SCRIPT>
 function samechanged(what) {
-%# not display = 'none', because we still want it to take up space
-%#  document.getElementById('table_ship_location').style.visibility = 
-%#    what.checked ? 'hidden' : 'visible';
   var t1 = document.getElementById('table_ship_location');
   if ( what.checked ) {
-    t1.style.visibility = 'hidden';
-  }
-  else {
-    t1.style.visibility = 'visible'
+    t1.style.display = 'none';
+  } else {
+    t1.style.display = ''
   }
 }
 samechanged(document.getElementById('same'));