From: Anton Khorev Date: Mon, 19 Aug 2024 17:05:48 +0000 (+0300) Subject: Show/hide "Where is this?" when setting search value from directions X-Git-Tag: live~304^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/93a9f31bf0e1cd3d5aec478aeef65c8132b02bdd Show/hide "Where is this?" when setting search value from directions --- diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 3f78c7089..ff76f4008 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -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)); });