dont be stupid

This commit is contained in:
Jacob Levine 2019-03-22 01:06:05 -05:00
parent 4671eacb6e
commit e992483f35
2 changed files with 6 additions and 3 deletions

View File

@ -36,8 +36,8 @@
Match: <select id="mselect" onchange="cmatch(document.getElementById('mselect').value)"></select>
Team: <select id="tselect"></Select>
Series: <select id="sselect" onchange="cseries(document.getElementById('sselect').value)">
<option value="Quantitative">Quantitative</option>
<option value="Qualitative">Qualitative</option>
<option value="quantitative">Quantitative</option>
<option value="qualitative">Qualitative</option>
</select>
</div>
<div id=FormData>

View File

@ -313,6 +313,9 @@ function dec(id) {
function inc(id) {
document.getElementById(id).innerHTML = "<input type='button' onclick=\"dec('" + id + "')\" value='-'></input>"+(parseInt(document.getElementById(id).textContent) + 1).toString()+"<input type='button' onclick=\"inc('" + id + "')\" value='+'></input>"
}
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function subReport() {
var user = firebase.auth().currentUser;
@ -331,7 +334,7 @@ function subReport() {
var submitTo = document.getElementById('tns').value;
var teamNum = document.getElementById('tselect').value;
var matchNum = document.getElementById('mselect').value;
var series = document.getElementById('sselect').value;
var series = capitalizeFirstLetter(document.getElementById('sselect').value);
var push = {}
push[series+'-'+user.uid]={}
var x = document.getElementById('repsec1').children;