X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e717c375bcb7a6fe5a10b35f28e6a16456ddd393..7fb432dc32d926f063d31e727e9d0cf88bca4f02:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 4f3c414f5..820c268b6 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -412,6 +412,9 @@ $(document).ready(function () { if (OSM.router.route(this.pathname + this.search + this.hash)) { e.preventDefault(); + if (this.pathname !== "/directions") { + $("header").addClass("closed"); + } } });