X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/349f5e0655f5026db54e4795e48a688eb2b7a654..d185e8326daaa07856f65883ba51290fb09c97a5:/app/assets/javascripts/index.js?ds=inline diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 4dfc849fe..c419f9321 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -405,6 +405,9 @@ $(document).ready(function () { if (OSM.router.route(this.pathname + this.search + this.hash)) { e.preventDefault(); + if (this.pathname !== "/directions") { + $("header").addClass("closed"); + } } });