]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Merge pull request #5333 from AntonKhorev/auth-buttons-same-as-preferred
[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 (OSM.router.route(this.pathname + this.search + this.hash)) {
       e.preventDefault();
+      if (this.pathname !== "/directions") {
+        $("header").addClass("closed");
+      }
     }
   });
 
     }
   });