From dbcf25697613cdb2641f991759c75d890254db2a Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 9 Sep 2022 22:58:26 +0300 Subject: [PATCH] Use close button instead of geolink in sidebar content --- app/assets/javascripts/index.js | 4 ++++ app/views/application/_sidebar_header.html.erb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 %>

- +
-- 2.39.5