Use close button instead of geolink in sidebar content
This commit is contained in:
parent
3d0b94abda
commit
dbcf256976
2 changed files with 5 additions and 1 deletions
|
@ -406,4 +406,8 @@ $(document).ready(function () {
|
|||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("click", "#sidebar_content .btn-close", function () {
|
||||
OSM.router.route("/" + OSM.formatHash(map));
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue