X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=896472d2b96df3a750ee5e92cfbf4a6b96a6ec14;hb=8e95986bf97e83e00b0375dd1517c4bd0afb23e5;hp=e2ed0f1da64b5c24e1c80365dba292e38809028c;hpb=84191efb2ad13dd839372df7a948dc08a6bb5ff5;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index e2ed0f1da..896472d2b 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -204,17 +204,19 @@ function bill_changed(what) { what.form.ship_<%$_%>.value = what.form.<%$_%>.value; % } - what.form.ship_country.selectedIndex = what.form.country.selectedIndex; + + function fix_ship_county() { + what.form.ship_county.selectedIndex = what.form.county.selectedIndex; + } + function fix_ship_state() { what.form.ship_state.selectedIndex = what.form.state.selectedIndex; + ship_state_changed(what.form.ship_state, fix_ship_county ); } + ship_country_changed(what.form.ship_country, fix_ship_state ); - function fix_ship_county() { - what.form.ship_county.selectedIndex = what.form.county.selectedIndex; - } - ship_state_changed(what.form.ship_state, fix_ship_county ); } } function samechanged(what) { @@ -242,7 +244,7 @@ function samechanged(what) { % my $disabledselect = ''; % unless ( $cust_main->ship_last && $same ne 'Y' ) { % $checked = 'CHECKED'; -% $disabled = 'DISABLED style="background-color: #dddddd"'; +% $disabled = 'DISABLED STYLE="background-color: #dddddd"'; % foreach ( % qw( last first company address1 address2 city county state zip country % daytime night fax )