This commit is contained in:
Jacob Levine 2019-03-18 18:57:43 -05:00
parent bf1572765c
commit 3ec4de4fb1

View File

@ -100,7 +100,7 @@ function changeTeam(teamNum) {
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()]);
@ -196,7 +196,8 @@ function addMatch(matchNum, seriesNum, position) {
if (success) { if (success) {
ti = firebase.firestore().collection('matchSignupsIndividual').doc(user.uid).collection("team-" + teamNum).doc(currentComp); ti = firebase.firestore().collection('matchSignupsIndividual').doc(user.uid).collection("team-" + teamNum).doc(currentComp);
label = "match-" + matchNum.toString() + " " + position label = "match-" + matchNum.toString() + " " + position
push = {label: { push = {
label: {
'completed': false, 'completed': false,
'series': seriesNum.toString() 'series': seriesNum.toString()
} }