X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/537d72b0f66562475808249a1a2ef3223df5dd52..286bffa3dba448f4364c6798f35003d8c6eefc4a:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index cecceaf35..83c17b6ec 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -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"); + }); });