X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/49ba5ab6d2e98221246635327eb15dc71c97e67d..377391e8bb4294a539d5363a20af51243877243c:/app/assets/javascripts/index.js 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"); + } } });