mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-25 00:21:39 +01:00
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').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#character_import_file').on('change', function (e) {
|
$('#character_import_file').on('change', async function (e) {
|
||||||
$('#rm_info_avatar').html('');
|
$('#rm_info_avatar').html('');
|
||||||
if (!e.target.files.length) {
|
if (!e.target.files.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const file of e.target.files) {
|
for (const file of e.target.files) {
|
||||||
importCharacter(file);
|
await importCharacter(file);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user