diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-09 10:36:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-09 10:36:06 +0000 |
commit | 09fb3f5265ee5fc1e58c427c9666c38918f240a3 (patch) | |
tree | 174c3748c275275722d835b27f74c60e066e7712 /web | |
parent | 49e30befced6b929facbcdc79e81a36ab570d0a7 (diff) |
Update any lat/lon fields when changed.
Cobrands might include the fields elsewhere, e.g. in moderation.
Also only use 6 decimal places.
Diffstat (limited to 'web')
-rw-r--r-- | web/js/map-OpenLayers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 30223d21d..eff52932f 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -499,8 +499,8 @@ $.extend(fixmystreet.utils, { $("#problem_easting").text(bng.x.toFixed(1)); $("#problem_latitude").text(lonlat.y.toFixed(6)); $("#problem_longitude").text(lonlat.x.toFixed(6)); - $("form#report_inspect_form input[name=latitude]").val(lonlat.y); - $("form#report_inspect_form input[name=longitude]").val(lonlat.x); + $("input[name=latitude]").val(lonlat.y.toFixed(6)); + $("input[name=longitude]").val(lonlat.x.toFixed(6)); }, false); } |