« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/upd8.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 9aa5e76a..6eea053a 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -5765,7 +5765,10 @@ function generateSidebarForAlbum(album, currentTrack, {strings, to, wikiData}) {
         ${(album.trackGroups
             ? album.trackGroups.map(({ name, color, startIndex, tracks }) =>
                 html.tag('details', {
-                    open: !currentTrack || tracks.includes(currentTrack),
+                    // Leave side8ar track groups collapsed on al8um homepage,
+                    // since there's already a view of all the groups expanded
+                    // in the main content area.
+                    open: currentTrack && tracks.includes(currentTrack),
                     class: tracks.includes(currentTrack) && 'current'
                 }, [
                     html.tag('summary',