From: Steinar H. Gunderson Date: Thu, 15 Mar 2018 19:27:12 +0000 (+0100) Subject: In the spreadsheets listing match results, allow abbreviations for teams. X-Git-Url: https://git.sesse.net/?p=ultimatescore;a=commitdiff_plain;h=38a454bd572510e7ead633f0ff94517dc7001cc6 In the spreadsheets listing match results, allow abbreviations for teams. --- 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; }