Show/hide "Where is this?" when setting search value from directions

This commit is contained in:
Anton Khorev 2024-08-19 20:05:48 +03:00
parent 41b81bd393
commit 93a9f31bf0

View file

@ -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));
});