]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Overlay-style minimized sidebar
[rails.git] / app / assets / javascripts / application.js
index cecceaf3563b9bf210cff59669e4a7c73b1d1373..83c17b6ecfca4281de4cf3a6652c5d78640dd76a 100644 (file)
@@ -134,4 +134,8 @@ $(document).ready(function () {
   $("#menu-icon").on("click", function() {
     $("header").toggleClass("closed");
   });
+
+  $("nav.primary li a").on("click", function() {
+    $("header").toggleClass("closed");
+  });
 });