Merge pull request #2014 from Wolfsblvt/fix-multi-char-import
Fix multi char import on import button click not importing tags
This commit is contained in:
commit
d27efb21d6
|
@ -9939,14 +9939,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