freeside/FS/FS cust_main_county.pm,1.12,1.13
ivan
ivan at pouncequick.420.am
Mon Dec 27 01:23:27 PST 2004
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory pouncequick:/tmp/cvs-serv4872/FS/FS
Modified Files:
cust_main_county.pm
Log Message:
UI: rework shipping address javascript, closes: Bug#1085
Index: cust_main_county.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main_county.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- cust_main_county.pm 1 Apr 2004 00:44:33 -0000 1.12
+++ cust_main_county.pm 27 Dec 2004 09:23:23 -0000 1.13
@@ -157,13 +157,13 @@
=over 4
-=item regionselector [ COUNTY STATE COUNTRY [ PREFIX [ ONCHANGE ] ] ]
+=item regionselector [ COUNTY STATE COUNTRY [ PREFIX [ ONCHANGE [ DISABLED ] ] ] ]
=cut
sub regionselector {
my ( $selected_county, $selected_state, $selected_country,
- $prefix, $onchange ) = @_;
+ $prefix, $onchange, $disabled ) = @_;
$prefix = '' unless defined $prefix;
@@ -238,7 +238,7 @@
my $county_html = $script_html;
if ( $countyflag ) {
- $county_html .= qq!<SELECT NAME="${prefix}county" onChange="$onchange">!;
+ $county_html .= qq!<SELECT NAME="${prefix}county" onChange="$onchange" $disabled>!;
$county_html .= '</SELECT>';
} else {
$county_html .=
@@ -246,7 +246,7 @@
}
my $state_html = qq!<SELECT NAME="${prefix}state" !.
- qq!onChange="${prefix}state_changed(this); $onchange">!;
+ qq!onChange="${prefix}state_changed(this); $onchange" $disabled>!;
foreach my $state ( sort keys %{ $cust_main_county{$selected_country} } ) {
my $text = $state || '(n/a)';
my $selected = $state eq $selected_state ? 'SELECTED' : '';
@@ -257,7 +257,7 @@
$state_html .= '</SELECT>';
my $country_html = qq!<SELECT NAME="${prefix}country" !.
- qq!onChange="${prefix}country_changed(this); $onchange">!;
+ qq!onChange="${prefix}country_changed(this); $onchange" $disabled>!;
my $countrydefault = $conf->config('countrydefault') || 'US';
foreach my $country (
sort { ($b eq $countrydefault) <=> ($a eq $countrydefault) or $a cmp $b }
More information about the freeside-commits
mailing list