web: fix get details value
This commit is contained in:
parent
71aa43faf0
commit
3e01f7bf45
|
@ -236,11 +236,7 @@ function update_part()
|
||||||
// the fields
|
// the fields
|
||||||
for (const field of fields) {
|
for (const field of fields) {
|
||||||
const input = document.getElementById('part_' + field);
|
const input = document.getElementById('part_' + field);
|
||||||
if (input.tagName == "INPUT") {
|
part[field] = input.value;
|
||||||
part[field] = input.value;
|
|
||||||
} else if (input.tagName == "TEXTAREA") {
|
|
||||||
part[field] = input.innerHTML;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (part["name"].length == 0) {
|
if (part["name"].length == 0) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue