From 37f5a48e2008bb5e7bafbd86cbd10ea7a7ef7dae Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 14 Jun 2021 08:50:07 +0200 Subject: [PATCH] Fix deleting non-image attachments from WYSIWYG editor --- wcfsetup/install/files/js/WCF.Attachment.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Attachment.js b/wcfsetup/install/files/js/WCF.Attachment.js index a4f9acaa66..46d9ca5d3f 100644 --- a/wcfsetup/install/files/js/WCF.Attachment.js +++ b/wcfsetup/install/files/js/WCF.Attachment.js @@ -520,11 +520,12 @@ WCF.Attachment.Upload = WCF.Upload.extend({ elData($li[0], 'object-id', attachmentData.attachmentID); + $li.addClass('jsObjectActionObject'); + // show thumbnail if (attachmentData.tinyURL) { $li.children('.fa-spinner').replaceWith($('')); - $li.addClass('jsObjectActionObject'); $li.data('height', attachmentData.height); $li.data('width', attachmentData.width); elData($li[0], 'is-image', attachmentData.isImage); -- 2.20.1