Merge pull request #32 from danstowell/jsrouting
fix typo which prevented directions closebox from working
This commit is contained in:
commit
fcae6999d0
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ OSM.Directions = function (map) {
|
||||||
|
|
||||||
$(".directions_form a.directions_close").on("click", function(e) {
|
$(".directions_form a.directions_close").on("click", function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var route_from = endpoint[0].value;
|
var route_from = endpoints[0].value;
|
||||||
if (route_from) {
|
if (route_from) {
|
||||||
OSM.router.route("/?query=" + encodeURIComponent(route_from) + OSM.formatHash(map));
|
OSM.router.route("/?query=" + encodeURIComponent(route_from) + OSM.formatHash(map));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue