]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Merge remote-tracking branch 'upstream/pull/5366'
[rails.git] / app / assets / javascripts / index.js
index 4dfc849feb5d9d24361566c50de3793d1c65ebd6..c419f93216b44507f4aed454b01792feba3744e9 100644 (file)
@@ -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");
+      }
     }
   });