From 3e01f7bf450a66b1624f9cef6b613d791d14ee5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Mon, 30 Jan 2023 01:00:48 +0100 Subject: [PATCH] web: fix get details value --- public/partdb.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;