Skip to content

Commit

Permalink
#42 When you import an image, it works well but the dialog should dis…
Browse files Browse the repository at this point in the history
…appear automatically
  • Loading branch information
AgriyaDev5 committed Jan 7, 2021
1 parent 4cc0212 commit 720b35d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/editor/extensions/ext-imagelib/ext-imagelib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 720b35d

Please sign in to comment.