From: Anton Khorev Date: Fri, 14 Jun 2024 15:45:29 +0000 (+0300) Subject: Write directions sidebar header using .erb template X-Git-Tag: live~41^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/18f03fe59b71d9eb08d7864b3d5b5a86c56e4972?hp=-c Write directions sidebar header using .erb template --- 18f03fe59b71d9eb08d7864b3d5b5a86c56e4972 diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 5aa773823..cddb3a451 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -134,7 +134,7 @@ OSM.Directions = function (map) { // copy loading item to sidebar and display it. we copy it, rather than // just using it in-place and replacing it in case it has to be used // again. - $("#sidebar_content").html($(".directions_form .loader_copy").html()); + $("#directions_content").html($(".directions_form .loader_copy").html()); map.setSidebarOverlaid(false); controller = new AbortController(); chosenEngine.getRoute(points, controller.signal).then(function (route) { @@ -158,16 +158,10 @@ OSM.Directions = function (map) { const turnByTurnTable = $("") .append($("")); - const directionsCloseButton = $("