From e992483f35a6a3165435989a1770f43ebd40a3b5 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 01:06:05 -0500 Subject: [PATCH] dont be stupid --- website/public/scout/index.html | 4 ++-- website/public/scout/scripts.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/website/public/scout/index.html b/website/public/scout/index.html index e4dcdb23..25ddb38c 100644 --- a/website/public/scout/index.html +++ b/website/public/scout/index.html @@ -36,8 +36,8 @@ Match: Team: Series:
diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 87dcb7cc..f581e3a7 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -313,6 +313,9 @@ function dec(id) { function inc(id) { document.getElementById(id).innerHTML = ""+(parseInt(document.getElementById(id).textContent) + 1).toString()+"" } +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;