Use close button instead of geolink in sidebar content

This commit is contained in:
Anton Khorev 2022-09-09 22:58:26 +03:00
parent 3d0b94abda
commit dbcf256976
2 changed files with 5 additions and 1 deletions

View file

@ -406,4 +406,8 @@ $(document).ready(function () {
e.preventDefault();
}
});
$(document).on("click", "#sidebar_content .btn-close", function () {
OSM.router.route("/" + OSM.formatHash(map));
});
});

View file

@ -1,6 +1,6 @@
<div class="d-flex w-100">
<h2 class="flex-grow-1 text-break"><%= title %></h2>
<div>
<a class="geolink d-block btn-close" href="<%= root_path %>"></a>
<button type="button" class="btn-close"></button>
</div>
</div>