diff --git a/public/partdb.js b/public/partdb.js index ac054bb..0c0c260 100644 --- a/public/partdb.js +++ b/public/partdb.js @@ -236,11 +236,7 @@ function update_part() // the fields for (const field of fields) { const input = document.getElementById('part_' + field); - if (input.tagName == "INPUT") { - part[field] = input.value; - } else if (input.tagName == "TEXTAREA") { - part[field] = input.innerHTML; - } + part[field] = input.value; } if (part["name"].length == 0) { return;