]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Update secondary nav active item highlight from js router
[rails.git] / app / assets / javascripts / index.js
index 4f3c414f5b85b207b399f4ed874bee7649e1ea92..820c268b6aab7219e10a042024c053c943d60676 100644 (file)
@@ -412,6 +412,9 @@ $(document).ready(function () {
 
     if (OSM.router.route(this.pathname + this.search + this.hash)) {
       e.preventDefault();
+      if (this.pathname !== "/directions") {
+        $("header").addClass("closed");
+      }
     }
   });