From: Anton Khorev Date: Fri, 9 Sep 2022 19:58:26 +0000 (+0300) Subject: Use close button instead of geolink in sidebar content X-Git-Tag: live~1482^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/dbcf25697613cdb2641f991759c75d890254db2a Use close button instead of geolink in sidebar content --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 49266f919..38c498169 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -406,4 +406,8 @@ $(document).ready(function () { e.preventDefault(); } }); + + $(document).on("click", "#sidebar_content .btn-close", function () { + OSM.router.route("/" + OSM.formatHash(map)); + }); }); diff --git a/app/views/application/_sidebar_header.html.erb b/app/views/application/_sidebar_header.html.erb index ed88a5ae3..868442c3e 100644 --- a/app/views/application/_sidebar_header.html.erb +++ b/app/views/application/_sidebar_header.html.erb @@ -1,6 +1,6 @@

<%= title %>

- +