diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 19b6dd75..1eaa39b2 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -234,7 +234,9 @@ function processAndAppendReturn(data) { document.getElementById('FormData').innerHTML += ""; } else if (questions[j][1]['type'] == 'stepper') { document.getElementById('FormData').innerHTML += "" + (questions[j][1]['defaultValue']).toString() + ""; - } else if (questions[j][1]['type'] == 'range') { + }else if (questions[j][1]['type'] == 'label') { + document.getElementById('FormData').innerHTML += "" + (questions[j][1]['defaultValue']).toString() + ""; + } else if (questions[j][1]['type'] == 'slider') { document.getElementById('FormData').innerHTML += "  " + questions[j][1]['min']['text'] + "  "; document.getElementById('FormData').innerHTML += ""; document.getElementById('FormData').innerHTML += "  " + questions[j][1]['max']['text']; @@ -375,6 +377,9 @@ function subReport() { push[name] = document.querySelector('input[name="' + name + '"]:checked').value; } } + firebase.firestore().collection("data").doc('team-' + document.getElementById('tns').value).collection(comp).doc("team-" + teamNum).collection('matches').doc('match-' + mselect).set({(user.uid+'-'+series), push}, { + merge: true + }) } }); }