fixed textArea bug

This commit is contained in:
Jacob Levine 2019-03-22 12:39:16 -05:00
parent 9562cc594f
commit 6dbdfe00fc

View File

@ -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;