diff options
author | Mark Wells <mark@freeside.biz> | 2015-10-30 16:07:37 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-10-30 16:07:37 -0700 |
commit | c40f5c44646f53c43e2fed784d19c3cecdd7f8c7 (patch) | |
tree | 4a1ba0e21c50a01225df19e089102d13d4c366d4 /httemplate/edit/cust_main.cgi | |
parent | f2057c70368bbb0acbc098baabc14e44d8e57d56 (diff) |
address standardization, part 2new_standardization
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 12 |
1 files changed, 7 insertions, 5 deletions
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(); + } + }); </SCRIPT> |