X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/774aa0c875157f8a1322920d0498c80025abadc6..286bffa3dba448f4364c6798f35003d8c6eefc4a:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e1c75d70f..83c17b6ec 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -135,5 +135,7 @@ $(document).ready(function () { $("header").toggleClass("closed"); }); - $('#ad .close').on("click", function() { $('#ad').remove(); }); + $("nav.primary li a").on("click", function() { + $("header").toggleClass("closed"); + }); });