diff --git a/djangoproject/static/js/app.js b/djangoproject/static/js/app.js index 85b84c5ff..1cf3b5525 100644 --- a/djangoproject/static/js/app.js +++ b/djangoproject/static/js/app.js @@ -1,3 +1,5 @@ +// Toggle persistent display of documentation version and language options if +// the element is clicked document.querySelectorAll('.doc-switcher li.current').forEach(function (el) { el.addEventListener('click', function () { this.parentElement.classList.toggle('open');