diff options
| author | Rapptz <[email protected]> | 2020-08-29 20:39:25 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-12-18 21:18:57 -0500 |
| commit | eba0aaa351542cd2043bd3a4c9c09251f09a1030 (patch) | |
| tree | 4943c7d5eea34734142bcb5724fb77f71014bbf2 /docs/_static | |
| parent | Use the constructed value in the settings (diff) | |
| download | discord.py-eba0aaa351542cd2043bd3a4c9c09251f09a1030.tar.xz discord.py-eba0aaa351542cd2043bd3a4c9c09251f09a1030.zip | |
Fix collapsible sidebar not working
Diffstat (limited to 'docs/_static')
| -rw-r--r-- | docs/_static/sidebar.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/_static/sidebar.js b/docs/_static/sidebar.js index 7849aea8..a08a3f21 100644 --- a/docs/_static/sidebar.js +++ b/docs/_static/sidebar.js @@ -41,9 +41,9 @@ class Sidebar { icon.addEventListener('click', () => { if (icon.classList.contains('expanded')) { - collapseSection(icon); + this.collapseSection(icon); } else { - expandSection(icon); + this.expandSection(icon); } }) @@ -63,7 +63,7 @@ class Sidebar { icon.classList.add('collapsed'); icon.innerText = 'chevron_right'; let children = icon.nextElementSibling.nextElementSibling; - // <arrow><heading> + // <arrow><heading> // --> <square><children> children.style.display = "none"; } |