From aed5df50520565fe5f3ce9e9f62977c655f9b58b Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 6 Jan 2025 03:18:31 +0000 Subject: Fix halfnarps new javascript --- static/halfnarp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/halfnarp.js') diff --git a/static/halfnarp.js b/static/halfnarp.js index 878f3ab..b7f4a45 100644 --- a/static/halfnarp.js +++ b/static/halfnarp.js @@ -8,7 +8,7 @@ function toggle_grid(whichDay) { } function toggle_corr_mode() { - if (!document.body.classList.contains('correlate')) + if (!document.body.classList.contains('correlate')) { document.body.classList.remove('all-tracks', 'languages', 'classifiers'); document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', '')); } @@ -481,7 +481,7 @@ function mark_corr(eid) { if (!all_votes) return; /* Reset correlation markers */ - document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', ''); + document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', '')); /* Get index of reference event id */ var eoff = all_votes.event_ids.indexOf(eid); -- cgit v1.2.3