web: fix clear details

This commit is contained in:
King Kévin 2023-01-30 01:14:04 +01:00
parent f365ced698
commit 00399572d7
1 changed files with 1 additions and 5 deletions

View File

@ -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) {