Merge pull request #58 from OptimistikSAS/issues/42

#42 When you import an image,  dialog should disappear automatically
master
JFH 2021-01-07 15:47:23 +01:00 committed by GitHub
commit 5c11a9c2d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -143,7 +143,9 @@ export default {
}
// Hide possible transfer dialog box
$('#dialog_box').hide();
if (document.querySelector('se-elix-alert-dialog')) {
document.querySelector('se-elix-alert-dialog').remove();
}
type = hasName
? 'meta'
: response.charAt(0);
@ -184,9 +186,6 @@ export default {
if (mode !== 'm') {
await seConfirm(message);
transferStopped = true;
// Should a message be sent back to the frame?
// $('#dialog_box').hide();
} else {
entry = $('<div>').text(message).data('id', curMeta.id);
preview.append(entry);