From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Tue, 4 Feb 2025 06:16:05 +0000 (+0100) Subject: Close directions popup with sidebar X-Git-Tag: live~178^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/628f6149d1c76ac09ebf8dea8d71f86eb9a91dc9 Close directions popup with sidebar --- diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index acba02d83..681479e52 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -227,6 +227,7 @@ OSM.Directions = function (map) { directionsCloseButton.on("click", function () { map.removeLayer(polyline); $("#sidebar_content").html(""); + popup.close(); map.setSidebarOverlaid(true); // TODO: collapse width of sidebar back to previous });