From ebe25312b567bcdd4001a58cc631e8c6947b4b24 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 00:31:31 -0500 Subject: [PATCH] af --- website/public/scout/scripts.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 5c606af6..305348da 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -384,7 +384,11 @@ function subReport() { } firebase.firestore().collection("data").doc('team-' + document.getElementById('tns').value).collection(currentComp).doc("team-" + teamNum).collection('matches').doc('match-' + mselect).set(push, { merge: true - }) + }).then(function() { + alert('Submitted!') + setTimeout(function() { + window.location.href = '../scout'; + }, 500); } }); }