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);
body.innerHTML = null;
}
// cleat attachment
const input = document.getElementById('attachment');
input.value = "";
// clear attachment
const attachments = document.getElementById('attachments');
attachments.innerHTML = null;
const attachment = document.getElementById('attachment');
attachment.value = "";
}
function select_part()