Fix multi char import on button

- Fixes #1983
- importCharacter has to be async await to await user input on tag creation
This commit is contained in:
Wolfsblvt 2024-04-05 00:53:32 +02:00
parent 6cc73c2a0b
commit 2e9c96d1c9
1 changed files with 2 additions and 2 deletions

View File

@ -9907,14 +9907,14 @@ jQuery(async function () {
$('#character_import_file').click();
});
$('#character_import_file').on('change', function (e) {
$('#character_import_file').on('change', async function (e) {
$('#rm_info_avatar').html('');
if (!e.target.files.length) {
return;
}
for (const file of e.target.files) {
importCharacter(file);
await importCharacter(file);
}
});