X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f9ab67577f765fc0ed85e4551872ef4d1b0a232c..5fdada204cf92d8ca99300927713724aaaf1b2bd:/app/assets/javascripts/index/directions.js diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index b2888fd54..1c095a36b 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -145,10 +145,10 @@ OSM.Directions = function (map) { to = endpoints[1].latlng, routeFrom = "", routeTo = ""; - if (from){ + if (from) { routeFrom = from.lat + "," + from.lng; } - if (to){ + if (to) { routeTo = to.lat + "," + to.lng; }