summaryrefslogtreecommitdiff
path: root/static/halfnarp.js
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2025-01-06 03:18:31 +0000
committerDirk Engling <erdgeist@erdgeist.org>2025-01-06 03:18:31 +0000
commitaed5df50520565fe5f3ce9e9f62977c655f9b58b (patch)
tree2a3bd7fdcd769d8b5c61a3248d27780c595ae4a3 /static/halfnarp.js
parentdd8037abe7898ce120007b2a4f5fc3d96d20340b (diff)
Fix halfnarps new javascript
Diffstat (limited to 'static/halfnarp.js')
-rw-r--r--static/halfnarp.js4
1 files changed, 2 insertions, 2 deletions
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) {
8} 8}
9 9
10function toggle_corr_mode() { 10function toggle_corr_mode() {
11 if (!document.body.classList.contains('correlate')) 11 if (!document.body.classList.contains('correlate')) {
12 document.body.classList.remove('all-tracks', 'languages', 'classifiers'); 12 document.body.classList.remove('all-tracks', 'languages', 'classifiers');
13 document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', '')); 13 document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', ''));
14 } 14 }
@@ -481,7 +481,7 @@ function mark_corr(eid) {
481 if (!all_votes) return; 481 if (!all_votes) return;
482 482
483 /* Reset correlation markers */ 483 /* Reset correlation markers */
484 document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', ''); 484 document.querySelectorAll('.event').forEach(elem => elem.setAttribute('corr', ''));
485 485
486 /* Get index of reference event id */ 486 /* Get index of reference event id */
487 var eoff = all_votes.event_ids.indexOf(eid); 487 var eoff = all_votes.event_ids.indexOf(eid);