web: fix clear details
This commit is contained in:
parent
f365ced698
commit
00399572d7
|
@ -64,11 +64,7 @@ function clear()
|
|||
// clear part fields
|
||||
for (const field of fields) {
|
||||
const input = document.getElementById('part_' + field);
|
||||
if (input.tagName == "INPUT") {
|
||||
input.value = "";
|
||||
} else if (input.tagName == "TEXTAREA") {
|
||||
input.innerHTML = null;
|
||||
}
|
||||
input.value = "";
|
||||
}
|
||||
// clear URLs
|
||||
for (const field of urls) {
|
||||
|
|
Loading…
Reference in New Issue