js: fix attachement clearing

This commit is contained in:
King Kévin 2023-03-26 15:38:30 +02:00
parent 64cd25675b
commit 3ffaf22368
1 changed files with 5 additions and 3 deletions

View File

@ -89,9 +89,11 @@ function clear()
const body = document.getElementById(table); const body = document.getElementById(table);
body.innerHTML = null; body.innerHTML = null;
} }
// cleat attachment // clear attachment
const input = document.getElementById('attachment'); const attachments = document.getElementById('attachments');
input.value = ""; attachments.innerHTML = null;
const attachment = document.getElementById('attachment');
attachment.value = "";
} }
function select_part() function select_part()