diff options
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 |
commit | cb8a7a7d06499ffef855f372d5722953bc48e0ed (patch) | |
tree | 739ac0b962f809e50bb9d63b7326119ab97296ec | |
parent | c7ef979430eb7853dea9c544260b0a2d58abfc04 (diff) |
expand group listings on album index page
-rw-r--r-- | upd8.js | 4 |
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> |