diff options
author | Mark Wells <mark@freeside.biz> | 2012-11-06 12:48:41 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-11-06 12:49:11 -0800 |
commit | 468c9e660eb0edb2033f0f8dbb4458f20280082c (patch) | |
tree | 9a87abfbfad9c820598c3a8d773f35c421c2bb38 /httemplate/elements/tr-select-cust_location.html | |
parent | 2b2aa5664742a134da11862a7cedb37d25524423 (diff) |
improved address standardization, #13763
Diffstat (limited to 'httemplate/elements/tr-select-cust_location.html')
-rw-r--r-- | httemplate/elements/tr-select-cust_location.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/elements/tr-select-cust_location.html b/httemplate/elements/tr-select-cust_location.html index b804f4548..7ffbd6c14 100644 --- a/httemplate/elements/tr-select-cust_location.html +++ b/httemplate/elements/tr-select-cust_location.html @@ -52,10 +52,11 @@ Example: if( ftype != 'SELECT') what.form.<%$_%>.style.backgroundColor = '#ffffff'; % } % if ( $opt{'alt_format'} ) { - if ( what.form.location_type.options[what.form.location_type.selectedIndex].value ) { + if ( what.form.location_type && + what.form.location_type.options[what.form.location_type.selectedIndex].value ) { what.form.location_number.disabled = false; what.form.location_number.style.backgroundColor = '#ffffff'; - } + } % } } @@ -281,6 +282,8 @@ if ( $locationnum && $locationnum > 0 ) { } } +$cust_location->coord_auto('Y'); + my $location_sort = sub { $a->country cmp $b->country or lc($a->city) cmp lc($b->city) |