diff options
author | Ivan Kohler <ivan@freeside.biz> | 2022-04-27 13:50:36 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2022-04-27 13:50:36 -0700 |
commit | 850f7e02ff0ca9f3514989d7d6c2a0ab96ac4e06 (patch) | |
tree | c42f601e8ba2bc6faf2d108e714ea1f14995be6f /httemplate/misc/openmap.html | |
parent | bf9b266acafce57cfa532801c00d45dc4eab765c (diff) |
restore correct workflow when no census match is found: offer map-based picker, RT#86245, RT#76968
Diffstat (limited to 'httemplate/misc/openmap.html')
-rw-r--r-- | httemplate/misc/openmap.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/httemplate/misc/openmap.html b/httemplate/misc/openmap.html index 88f64c1ff..a9a70337f 100644 --- a/httemplate/misc/openmap.html +++ b/httemplate/misc/openmap.html @@ -44,8 +44,7 @@ function getCensusTract(lat, lon) { var url = 'xmlhttp-censustract.html?lat=' + lat + '&lon=' + lon + '&census_year=<%$census_year%>'; $.getJSON(url,function(data){ - var tract = (data.Block.FIPS.substr(0, 11) / 100).toFixed(2); - document.getElementById("mycensustract").innerHTML = tract; + document.getElementById("mycensustract").innerHTML = data.Block.FIPS; }); } @@ -81,4 +80,4 @@ my $zip_code = $cgi->param('zip_code'); my $address = $cgi->param('address'); my $loc = $zip_code ? $zip_code : $address; -</%init>
\ No newline at end of file +</%init> |