X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;fp=httemplate%2Fedit%2Fcust_main.cgi;h=ee8d1b18de1ade99abf484787100ae1c4d493cce;hp=25932019ed22b22ee1afaf54fd5549d6346bedee;hb=c40f5c44646f53c43e2fed784d19c3cecdd7f8c7;hpb=f2057c70368bbb0acbc098baabc14e44d8e57d56 diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 25932019e..ee8d1b18d 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -107,12 +107,14 @@ function samechanged(what) { } } -% if ( ! $has_ship_address ) { - $('#ship_location').hide(); -% } - $().ready( function() { - window.bill_location = new Location($('fieldset#bill_location')); + window.bill_location = new Location($('fieldset#bill_location'), 'bill_'); + window.ship_location = new Location($('fieldset#ship_location'), 'ship_'); + + if ($('#same').prop('checked')) { + $('#ship_location').hide(); + } + });