fix typo which prevented directions closebox from working
authorDan Stowell <danstowell@users.sourceforge.net>
Mon, 26 Jan 2015 20:48:01 +0000 (20:48 +0000)
committerDan Stowell <danstowell@users.sourceforge.net>
Mon, 26 Jan 2015 20:48:01 +0000 (20:48 +0000)
app/assets/javascripts/index/directions.js.erb

index c3ad085ffeda4c20560d4b122cca6e87743f9fb7..93767612bba5654624e3e3a6ae8e438a2098cab5 100644 (file)
@@ -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 {