From 8024ad919c4ff4c0249d653ee3626a4b38942f3a Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Mon, 26 Jan 2015 20:48:01 +0000 Subject: [PATCH] fix typo which prevented directions closebox from working --- app/assets/javascripts/index/directions.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5