diff options
author | ivan <ivan> | 2006-12-27 01:07:28 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-12-27 01:07:28 +0000 |
commit | 8e95986bf97e83e00b0375dd1517c4bd0afb23e5 (patch) | |
tree | bf313afe11c3b188acbc02bd647f5535a851c347 /httemplate/edit/cust_main.cgi | |
parent | 84191efb2ad13dd839372df7a948dc08a6bb5ff5 (diff) |
fix county selector
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 14 |
1 files changed, 8 insertions, 6 deletions
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 ) |