From: Dan Stowell Date: Mon, 26 Jan 2015 20:48:01 +0000 (+0000) Subject: fix typo which prevented directions closebox from working X-Git-Tag: live~4781^2~6^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8024ad919c4ff4c0249d653ee3626a4b38942f3a?ds=sidebyside fix typo which prevented directions closebox from working --- diff --git a/app/assets/javascripts/index/directions.js.erb b/app/assets/javascripts/index/directions.js.erb index c3ad085ff..93767612b 100644 --- a/app/assets/javascripts/index/directions.js.erb +++ b/app/assets/javascripts/index/directions.js.erb @@ -109,7 +109,7 @@ OSM.Directions = function (map) { $(".directions_form a.directions_close").on("click", function(e) { e.preventDefault(); - var route_from = endpoint[0].value; + var route_from = endpoints[0].value; if (route_from) { OSM.router.route("/?query=" + encodeURIComponent(route_from) + OSM.formatHash(map)); } else {