diff options
Diffstat (limited to 'static/halfnarp.js')
-rw-r--r-- | static/halfnarp.js | 4 |
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 | ||
10 | function toggle_corr_mode() { | 10 | function 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); |