X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/518a51712c7dce533f4e2d72873e01746fbe50e8..d920d94f69de0e6f5d354f58933290fcdf0345de:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index c1f6af004..2c186c909 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -132,10 +132,10 @@ $(document).ready(function () { $("#menu-icon").on("click", function(e) { e.preventDefault(); - $("#header").toggleClass("closed"); + $("header").toggleClass("closed"); }); - $(".nav.primary li a").on("click", function() { - $("#header").toggleClass("closed"); + $("nav.primary li a").on("click", function() { + $("header").toggleClass("closed"); }); });