From 720b35d96f02f2ae896ec1a0a1632f60732e76c7 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Thu, 7 Jan 2021 19:31:21 +0530 Subject: [PATCH] #42 When you import an image, it works well but the dialog should disappear automatically --- src/editor/extensions/ext-imagelib/ext-imagelib.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/editor/extensions/ext-imagelib/ext-imagelib.js b/src/editor/extensions/ext-imagelib/ext-imagelib.js index 98597b89..e4d8987b 100644 --- a/src/editor/extensions/ext-imagelib/ext-imagelib.js +++ b/src/editor/extensions/ext-imagelib/ext-imagelib.js @@ -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 = $('
').text(message).data('id', curMeta.id); preview.append(entry);