]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Redo mobile styles
[rails.git] / app / assets / javascripts / application.js
index 83c17b6ecfca4281de4cf3a6652c5d78640dd76a..f1a13132c6b305bab642fef8c744a44ef09cb159 100644 (file)
@@ -131,7 +131,8 @@ $(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() {
+  $("#menu-icon").on("click", function(e) {
+    e.preventDefault();
     $("header").toggleClass("closed");
   });