From 38a454bd572510e7ead633f0ff94517dc7001cc6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 15 Mar 2018 20:27:12 +0100 Subject: [PATCH] In the spreadsheets listing match results, allow abbreviations for teams. --- carousel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/carousel.js b/carousel.js index 8202742..aefe6db 100644 --- a/carousel.js +++ b/carousel.js @@ -69,6 +69,8 @@ function make_teams_to_idx(teams) let teams_to_idx = []; for (let i = 0; i < teams.length; i++) { teams_to_idx[teams[i].name] = i; + teams_to_idx[teams[i].mediumname] = i; + teams_to_idx[teams[i].shortname] = i; } return teams_to_idx; } -- 2.39.2