From 6dbdfe00fcd56c1edb3bb3820a711e80c3a8b220 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 12:39:16 -0500 Subject: [PATCH] fixed textArea bug --- website/public/scout/scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index a11dc5b9..e9c792c5 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -356,7 +356,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; } } var x = document.getElementById('repsec2').children; @@ -369,7 +369,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; } } var x = document.getElementById('repsec3').children;