summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main/bottomfixup.js
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-12-02 15:43:20 -0800
committerMark Wells <mark@freeside.biz>2014-12-02 15:43:20 -0800
commitb79d815338e1895fce025aef5dcb5f9f42028562 (patch)
tree1a6061c3403062beb3ad26d1c6d4417b8ab16052 /httemplate/edit/cust_main/bottomfixup.js
parent99ee0e1e3b2e5e35e7fc4e8aed2093841dd3d852 (diff)
when address standardization returns a censustract, don't try to look it up through FFIEC also, #32459
Diffstat (limited to 'httemplate/edit/cust_main/bottomfixup.js')
-rw-r--r--httemplate/edit/cust_main/bottomfixup.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/httemplate/edit/cust_main/bottomfixup.js b/httemplate/edit/cust_main/bottomfixup.js
index 8aef1e72c..6a9deb92a 100644
--- a/httemplate/edit/cust_main/bottomfixup.js
+++ b/httemplate/edit/cust_main/bottomfixup.js
@@ -100,14 +100,13 @@ function copyelement(from, to) {
//alert(from + " (" + from.type + "): " + to.name + " => " + to.value);
}
-% # the value in pre+'censustract' is the confirmed censustract; if it's set,
-% # and the user hasn't changed it manually, skip this
+% # the value in pre+'censustract' is the confirmed censustract (either from
+% # the previous saved record, or from address standardization (if the backend
+% # supports it), or from an aborted previous submit. only need to reconfirm
+% # if it's empty.
function confirm_censustract(pre) {
var cf = document.CustomerForm;
- if ( cf.elements[pre+'censustract'].value == '' ||
- cf.elements[pre+'enter_censustract'].value !=
- cf.elements[pre+'censustract'].value )
- {
+ if ( cf.elements[pre+'censustract'].value == '' ) {
var address_info = form_address_info();
address_info[pre+'latitude'] = cf.elements[pre+'latitude'].value;
address_info[pre+'longitude'] = cf.elements[pre+'longitude'].value;