diff options
author | Mark Wells <mark@freeside.biz> | 2014-11-26 16:55:30 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-11-26 16:55:30 -0800 |
commit | 2d5acabf71d46aa469a6867f294706242c82db98 (patch) | |
tree | 5072d65911c3e4810b8ccfb61df5178f3dcd6348 /httemplate/elements/standardize_locations.js | |
parent | d51f9090afefa9e29200fc1df6e88e8c24a55657 (diff) |
don't look up or display census tracts for non-U.S. addresses, #32249
Diffstat (limited to 'httemplate/elements/standardize_locations.js')
-rw-r--r-- | httemplate/elements/standardize_locations.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js index 2d1fc7423..307f822c9 100644 --- a/httemplate/elements/standardize_locations.js +++ b/httemplate/elements/standardize_locations.js @@ -293,10 +293,15 @@ function confirm_censustract() { '<%$p%>/misc/confirm-censustract.html', 'q=' + encodeURIComponent(JSON.stringify(address_info)), function() { - overlib( OLresponseAJAX, CAPTION, 'Confirm censustract', STICKY, - AUTOSTATUSCAP, CLOSETEXT, '', MIDX, 0, MIDY, 0, DRAGGABLE, WIDTH, - 576, HEIGHT, 268, BGCOLOR, '#333399', CGCOLOR, '#333399', - TEXTSIZE, 3 ); + if ( OLresponseAJAX ) { + overlib( OLresponseAJAX, CAPTION, 'Confirm censustract', STICKY, + AUTOSTATUSCAP, CLOSETEXT, '', MIDX, 0, MIDY, 0, DRAGGABLE, WIDTH, + 576, HEIGHT, 268, BGCOLOR, '#333399', CGCOLOR, '#333399', + TEXTSIZE, 3 ); + } else { + // no response + <% $post_censustract %>; + } }, 0); } else { |