bugfix 11

This commit is contained in:
Jacob Levine 2019-03-18 19:15:17 -05:00
parent b2bb2df3f0
commit 76b4107999

View File

@ -95,32 +95,32 @@ function changeTeam(teamNum) {
if (mi['far-blue']['series-' + (j + 1).toString()] != null) { if (mi['far-blue']['series-' + (j + 1).toString()] != null) {
fb.push(mi['far-blue']['series-' + (j + 1).toString()]); fb.push(mi['far-blue']['series-' + (j + 1).toString()]);
} else { } else {
fb.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'far-blue')'>open</span>`); fb.push(`<span onclick="addMatch(${(i + 1).toString()},${(j + 1).toString()},'far-blue')">open</span>`);
} }
if (mi['mid-blue']['series-' + (j + 1).toString()] != null) { if (mi['mid-blue']['series-' + (j + 1).toString()] != null) {
mb.push(mi['mid-blue']['series-' + (j + 1).toString()]); mb.push(mi['mid-blue']['series-' + (j + 1).toString()]);
} else { } else {
mb.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'mid-blue')'>open</span>`); mb.push(`<span onclick="addMatch(${(i + 1).toString()},${(j + 1).toString()},'mid-blue')">open</span>`);
} }
if (mi['near-blue']['series-' + (j + 1).toString()] != null) { if (mi['near-blue']['series-' + (j + 1).toString()] != null) {
nb.push(mi['near-blue']['series-' + (j + 1).toString()]); nb.push(mi['near-blue']['series-' + (j + 1).toString()]);
} else { } else {
nb.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'near-blue')'>open</span>`); nb.push(`<span onclick="addMatch(${(i + 1).toString()},${(j + 1).toString()},'near-blue')">open</span>`);
} }
if (mi['far-red']['series-' + (j + 1).toString()] != null) { if (mi['far-red']['series-' + (j + 1).toString()] != null) {
fr.push(mi['far-red']['series-' + (j + 1).toString()]); fr.push(mi['far-red']['series-' + (j + 1).toString()]);
} else { } else {
fr.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'far-red')'>open</span>`); fr.push(`<span onclick="addMatch(${(i + 1).toString()},${(j + 1).toString()},'far-red')">open</span>`);
} }
if (mi['mid-red']['series-' + (j + 1).toString()] != null) { if (mi['mid-red']['series-' + (j + 1).toString()] != null) {
mr.push(mi['mid-red']['series-' + (j + 1).toString()]); mr.push(mi['mid-red']['series-' + (j + 1).toString()]);
} else { } else {
mr.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'mid-red')'>open</span>`); mr.push(`<span onclick="addMatch(${(i + 1).toString()},${(j + 1).toString()},'mid-red')">open</span>`);
} }
if (mi['near-red']['series-' + (j + 1).toString()] != null) { if (mi['near-red']['series-' + (j + 1).toString()] != null) {
nr.push(mi['near-red']['series-' + (j + 1).toString()]); nr.push(mi['near-red']['series-' + (j + 1).toString()]);
} else { } else {
nr.push(`<span onclick='addMatch(${(i + 1).toString()},${(j + 1).toString()},'near-red')'>open</span>`) nr.push(`<span onclick="addMatch(${(i + 1).toString()},${(j + 1).toString()},'near-red')">open</span>`)
} }
} }
var outstr = ""; var outstr = "";