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:
parent
6cc73c2a0b
commit
2e9c96d1c9
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue