From 249c1e65c60b3227691af8681369e7513e8c2ec4 Mon Sep 17 00:00:00 2001 From: Adam Zapletal Date: Wed, 18 Dec 2024 20:22:28 -0600 Subject: [PATCH] Add comment --- djangoproject/static/js/app.js | 2 ++ 1 file changed, 2 insertions(+) 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');