diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/concerts.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/concerts.js b/scripts/concerts.js index fb45819..c4a07f3 100644 --- a/scripts/concerts.js +++ b/scripts/concerts.js @@ -13,7 +13,7 @@ if (anchor.match(/#concert-/)) { .classList.add('active'); pHint.style.display = 'none'; } -document.querySelectorAll('a.event').forEach((link) => { +document.querySelectorAll('.event > a.thumbnail').forEach((link) => { link.addEventListener('click', function(click) { if (click.ctrlKey || click.shiftKey) return; @@ -24,7 +24,7 @@ document.querySelectorAll('a.event').forEach((link) => { var id = link.attributes['href'].value; document.querySelector(id).classList.add('active'); - prev = document.querySelector('.eventcontainer.active'); + prev = document.querySelector('.event.active'); if (prev) prev.classList.remove('active'); link.parentNode.classList.add('active'); |
