summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-04-14 15:33:39 -0700
committerMark Wells <mark@freeside.biz>2012-04-14 15:33:39 -0700
commit5abe1300f16cf01a6311203deee29373162491c7 (patch)
tree13a8b474966c5697ec2dc3003bd7b3389e9afefc /httemplate
parent3fd1a0086512ada7b04e211161ac699d932ae1d0 (diff)
rename geocode_cache; minor coord_auto bugfix
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/order_pkg.js3
-rw-r--r--httemplate/elements/standardize_locations.js7
-rw-r--r--httemplate/misc/xmlhttp-address_standardize.html2
3 files changed, 5 insertions, 7 deletions
diff --git a/httemplate/elements/order_pkg.js b/httemplate/elements/order_pkg.js
index 84c7a820b..8c1efd93a 100644
--- a/httemplate/elements/order_pkg.js
+++ b/httemplate/elements/order_pkg.js
@@ -19,13 +19,10 @@ function pkg_changed () {
form.start_date_text.disabled = false;
form.start_date.style.backgroundColor = '#ffffff';
form.start_date_button.style.display = '';
- //form.start_date_button_disabled.style.display = 'none';
- //form.invoice_terms.disabled = true;
} else {
form.start_date_text.disabled = true;
form.start_date.style.backgroundColor = '#dddddd';
form.start_date_button.style.display = 'none';
- //form.start_date_button_disabled.style.display = '';
}
} else {
diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js
index 8bec87e1d..77683b9d3 100644
--- a/httemplate/elements/standardize_locations.js
+++ b/httemplate/elements/standardize_locations.js
@@ -45,9 +45,10 @@ function standardize_locations() {
}
% }
-// unless they're both empty
- if ( cf.elements['<% $pre %>latitude'] == '' &&
- cf.elements['<% $pre %>longitude'] == '' ) {
+ // but if the coordinates have been set to null, turn coord_auto on
+ // and standardize
+ if ( cf.elements['<% $pre %>latitude'].value == '' &&
+ cf.elements['<% $pre %>longitude'].value == '' ) {
cf.elements['<% $pre %>coord_auto'].value = 'Y';
changed = true;
}
diff --git a/httemplate/misc/xmlhttp-address_standardize.html b/httemplate/misc/xmlhttp-address_standardize.html
index f305a2410..c2d6d7a80 100644
--- a/httemplate/misc/xmlhttp-address_standardize.html
+++ b/httemplate/misc/xmlhttp-address_standardize.html
@@ -24,7 +24,7 @@ foreach my $pre ( '', 'ship_' ) {
qw( company address1 address2 city state zip country )
};
- my $cache = eval { FS::geocode_cache->standardize($location) };
+ my $cache = eval { FS::GeocodeCache->standardize($location) };
$cache->set_censustract if $pre;
$cache->set_coord;