From 1b24e906350df7424aec2dd46314f8dd13a5c21c Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Tue, 9 Jul 2024 13:51:50 +0200 Subject: [PATCH] Fix team reorder for 5-teams pools in draw recap Signed-off-by: Emmy D'Anello --- draw/static/tfjm/js/draw.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/draw/static/tfjm/js/draw.js b/draw/static/tfjm/js/draw.js index 5cfab41..6c31f49 100644 --- a/draw/static/tfjm/js/draw.js +++ b/draw/static/tfjm/js/draw.js @@ -700,6 +700,9 @@ document.addEventListener('DOMContentLoaded', () => { let problem = problems[i] setProblemAccepted(tid, round, team, problem) + + let recapTeam = document.getElementById(`recap-${tid}-round-${round}-team-${team}`) + recapTeam.style.order = i.toString() } }