From 93a9f31bf0e1cd3d5aec478aeef65c8132b02bdd Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 19 Aug 2024 20:05:48 +0300 Subject: [PATCH] Show/hide "Where is this?" when setting search value from directions --- app/assets/javascripts/index/directions.js | 1 + 1 file changed, 1 insertion(+) 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)); }); -- 2.39.5