X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e34b62fac7d0a9a7b03e92bdf26f691736e2954..28060080e8ebf3a0609dc2b6853deeae2070df78:/app/assets/javascripts/index.js 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)); + }); });