summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main.cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-06-14 14:26:19 -0700
committerIvan Kohler <ivan@freeside.biz>2015-06-14 14:26:19 -0700
commit0f57e99bd0af253afa16e20f1141afee851b8d5a (patch)
tree335070f2b8f6fc815de0af0c0ec92017312769b5 /httemplate/edit/cust_main.cgi
parent506de9ec7d74b35d2bed671526a4363d022026b1 (diff)
why wouldn't we want to hide the whole thing rather than leave a big blank gap?
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-xhttemplate/edit/cust_main.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index 877d1e80e..d4129a37c 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -97,15 +97,13 @@
<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';
+ t1.style.display = 'none';
}
else {
- t1.style.visibility = 'visible'
+ t1.style.display = ''
}
}
samechanged(document.getElementById('same'));