fix typo which prevented directions closebox from working

This commit is contained in:
Dan Stowell 2015-01-26 20:48:01 +00:00
parent df283287e6
commit 8024ad919c

View 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 {