« get me outta code hell

expand group listings on album index page - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-10-29 11:49:03 -0300
committer(quasar) nebula <towerofnix@gmail.com>2020-10-29 11:49:03 -0300
commitcb8a7a7d06499ffef855f372d5722953bc48e0ed (patch)
tree739ac0b962f809e50bb9d63b7326119ab97296ec /upd8.js
parentc7ef979430eb7853dea9c544260b0a2d58abfc04 (diff)
expand group listings on album index page
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 25e282ff..fae08026 100644
--- a/upd8.js
+++ b/upd8.js
@@ -2450,9 +2450,9 @@ function generateSidebarForAlbum(album, currentTrack = null) {
                     (i > 0 && track.group !== arr[i - 1].group) && `</${listTag}></dd>`,
                     (i === 0 || track.group !== arr[i - 1].group) && fixWS`
                         ${track.group && `<dt style="${getThemeString(track)}" ${classes(currentTrack && track.group === currentTrack.group && 'current')}><a href="${C.TRACK_DIRECTORY}/${track.directory}/index.html">${track.group}</a></dt>`}
-                        <dd><${listTag}>
+                        <dd style="${getThemeString(track)}"><${listTag}>
                     `,
-                    (currentTrack && track.group === currentTrack.group) && trackToListItem(track),
+                    (!currentTrack || track.group === currentTrack.group) && trackToListItem(track),
                     i === arr.length && `</${listTag}></dd>`
                 ].filter(Boolean)).join('\n')}
             </dl>