Skip to content

Commit

Permalink
Fix removal of current class to only affect thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed Dec 26, 2023
1 parent 7419183 commit 622e90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme_153957/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

function highlightThumbnail() {
// Highlight the thumbnail corresponding to the displayed image
const current = document.querySelector('.current')
const current = document.getElementById('thumbnails').querySelector('.current')
current?.classList.remove('current')
const next = document.querySelector(`[data-id="${window.location.hash.slice(1)}"]`)
next?.classList.add('current')
Expand Down

0 comments on commit 622e90b

Please sign in to comment.