X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cdf9634d08540baf0264bdf74bd9a2f6bebfb124..8a020b3ec727b8c9fa4d819855469dd348e58ee7:/app/assets/javascripts/index.js?ds=sidebyside 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"); + } } });