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 ++-- static/index.html | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'static') 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); diff --git a/static/index.html b/static/index.html index 2e93fb3..bb680d1 100644 --- a/static/index.html +++ b/static/index.html @@ -3,11 +3,11 @@ halfnarp web scheduling helper app - - - - - + + + + + -- cgit v1.2.3