summaryrefslogtreecommitdiff
path: root/httemplate/elements/standardize_locations.js
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-12-22 17:03:07 -0800
committerMark Wells <mark@freeside.biz>2015-12-22 17:22:26 -0800
commit152c54a5c8277fb09429d6ded83535edd0a914f2 (patch)
tree5f3e731195cf51c9a8575355857e8f8175b5fdc8 /httemplate/elements/standardize_locations.js
parent659bfc275fe537566bfde62b3a2a7477e10e0bc0 (diff)
improve handling of internal errors from US Census geocoding, #39549
Diffstat (limited to 'httemplate/elements/standardize_locations.js')
-rw-r--r--httemplate/elements/standardize_locations.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js
index c2857377a..fed57334a 100644
--- a/httemplate/elements/standardize_locations.js
+++ b/httemplate/elements/standardize_locations.js
@@ -114,7 +114,12 @@ function confirm_standardize(arg) {
// then all entered address fields are correct
// but we still need to set the lat/long fields and addr_clean
- status_message('Verified');
+
+ if ( returned['addr_clean'] ) {
+ status_message('Verified');
+ } else {
+ status_message('Unverified');
+ }
replace_address();
} else {