web: fix get details value
This commit is contained in:
parent
71aa43faf0
commit
3e01f7bf45
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue