]> git.sesse.net Git - ultimatescore/commitdiff
In the spreadsheets listing match results, allow abbreviations for teams.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 15 Mar 2018 19:27:12 +0000 (20:27 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 15 Mar 2018 19:27:57 +0000 (20:27 +0100)
carousel.js

index 82027427b53afdf488508fbe239888d31acab625..aefe6db81324bc876671b791c1daa3656d439693 100644 (file)
@@ -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;
        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;
 }
        }
        return teams_to_idx;
 }