From 4d4b92a175837e37804ff30f536616871565317b Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Sat, 6 Apr 2019 16:09:42 -0500 Subject: [PATCH] Fixed bug where display state was not changed with collapse_all --- linkstore/static/linkstore/js/collapse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/linkstore/static/linkstore/js/collapse.js b/linkstore/static/linkstore/js/collapse.js index d1b14df..8852410 100644 --- a/linkstore/static/linkstore/js/collapse.js +++ b/linkstore/static/linkstore/js/collapse.js @@ -20,6 +20,7 @@ function collapse_all () { content = colls[i].nextElementSibling; if (content.style.display === "block") { content.style.display = "none"; + colls[i].classList.toggle("active"); } } }