From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Date: Fri, 21 Feb 2025 11:12:04 +0000 (+0100)
Subject: Clean up new direction form
X-Git-Tag: live~2^2
X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/87363858cb4e9cff9b5c29ac6e95425c5c3fab8b
Clean up new direction form
---
diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js
index ee8d3b8c5..c6f83a575 100644
--- a/app/assets/javascripts/index/directions.js
+++ b/app/assets/javascripts/index/directions.js
@@ -248,7 +248,7 @@ OSM.Directions = function (map) {
});
select.on("change", function (e) {
- setEngine(e.target.selectedOptions[0].value + "_" + chosenEngine.mode);
+ setEngine(e.target.value + "_" + chosenEngine.mode);
Cookies.set("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/", samesite: "lax" });
getRoute(true, true);
});
diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb
index b4e6bf123..706d27a99 100644
--- a/app/views/layouts/_search.html.erb
+++ b/app/views/layouts/_search.html.erb
@@ -70,19 +70,19 @@