From 0f671daf309dda5d410c895d22abef40a413a76d Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 11:28:22 -0500 Subject: [PATCH 1/3] added fields that Arthut needed --- website/public/scout/scripts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index daee73aa..39b57d55 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -385,6 +385,8 @@ function subReport() { push[`${series}-${user.uid.toString()}`.toString()][x[i].children[1].id] = x[i].children[1].innerHTML; } } + push[`${series}-${user.uid.toString()}`.toString()]['match']='match-'+matchNum; + push[`${series}-${user.uid.toString()}`.toString()]['teamDBRed']='team-'+teamNum; try { delete push[`${series}-${user.uid.toString()}`.toString()][""] } catch (e) { From 56f6752ff76c7f7a1efb644d7c1ef8cdbfe60ad8 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 11:50:03 -0500 Subject: [PATCH 2/3] fixed textArea bug --- website/public/scout/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 39b57d55..6aa4fe9a 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -382,7 +382,7 @@ function subReport() { var name = x[i].children[0].id; push[`${series}-${user.uid.toString()}`.toString()][name] = document.querySelector('input[name="' + name + '"]:checked').value; } else if (x[i].children[1].tagName == "TEXTAREA") { - push[`${series}-${user.uid.toString()}`.toString()][x[i].children[1].id] = x[i].children[1].innerHTML; + push[`${series}-${user.uid.toString()}`.toString()][x[i].children[1].id] = x[i].children[1].value; } } push[`${series}-${user.uid.toString()}`.toString()]['match']='match-'+matchNum; From 9562cc594fd83641c55d80f81974adcb5f2db859 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 11:53:15 -0500 Subject: [PATCH 3/3] fixed another bug --- website/public/scout/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 6aa4fe9a..a11dc5b9 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -237,7 +237,7 @@ function processAndAppendReturn(data, newloc) { if (questions[j][1]['type'] == 'shortText') { document.getElementById(newloc + j.toString()).innerHTML += ""; } else if (questions[j][1]['type'] == 'textField') { - document.getElementById(newloc + j.toString()).innerHTML += "
"; + document.getElementById(newloc + j.toString()).innerHTML += "
"; } else if (questions[j][1]['type'] == 'stepper') { document.getElementById(newloc + j.toString()).innerHTML += "" + (questions[j][1]['defaultValue']).toString() + ""; } else if (questions[j][1]['type'] == 'label') {