Merge pull request #32 from danstowell/jsrouting

fix typo which prevented directions closebox from working
This commit is contained in:
Richard Fairhurst 2015-01-26 23:47:31 +00:00
commit fcae6999d0

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 {