Show/hide "Where is this?" when setting search value from directions
This commit is contained in:
parent
41b81bd393
commit
93a9f31bf0
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ OSM.Directions = function (map) {
|
|||
|
||||
$(".directions_form .btn-close").on("click", function (e) {
|
||||
e.preventDefault();
|
||||
$(".describe_location").toggle(!endpoints[0].value);
|
||||
$(".search_form input[name='query']").val(endpoints[0].value);
|
||||
OSM.router.route("/" + OSM.formatHash(map));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue