]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
responsive secondary pages and fixed map
[rails.git] / app / assets / javascripts / application.js
index 493c03d9161721a1f8eff3184a68e8593e7fd106..cecceaf3563b9bf210cff59669e4a7c73b1d1373 100644 (file)
@@ -17,9 +17,7 @@
 //= require oauth
 //= require piwik
 //= require map
-//= require sidebar
 //= require richtext
-//= require geocoder
 //= require querystring
 
 var querystring = require('querystring-component');
@@ -132,4 +130,8 @@ function minimiseMap() {
 $(document).ready(function () {
   var auth_token = $("meta[name=csrf-token]").attr("content");
   $("form input[name=authenticity_token]").val(auth_token);
+
+  $("#menu-icon").on("click", function() {
+    $("header").toggleClass("closed");
+  });
 });