From: Alexander Ebert Date: Wed, 13 Nov 2024 16:08:18 +0000 (+0100) Subject: Force the attachment tab to be open when uploading files by dropping X-Git-Tag: 6.1.1_dev_1~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e62510099f60e610d5b99f16e1bddbc779de539e;p=GitHub%2FWoltLab%2FWCF.git Force the attachment tab to be open when uploading files by dropping Fixes #6034 Regression of #5988 --- diff --git a/ts/WoltLabSuite/Core/Component/Attachment/List.ts b/ts/WoltLabSuite/Core/Component/Attachment/List.ts index 02f3211b6a..8def637a79 100644 --- a/ts/WoltLabSuite/Core/Component/Attachment/List.ts +++ b/ts/WoltLabSuite/Core/Component/Attachment/List.ts @@ -54,7 +54,7 @@ export function setup(editorId: string): void { return; } - window.jQuery(messageTabMenu).messageTabMenu("showTab", "attachments"); + window.jQuery(messageTabMenu).messageTabMenu("showTab", "attachments", true); }) .collectMetaData((payload) => { let context: Context | undefined = undefined; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/List.js index 1f8f0183b5..518727b6d7 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/List.js @@ -41,7 +41,7 @@ define(["require", "exports", "./Entry", "../Ckeditor/Event"], function (require if (messageTabMenu === null) { return; } - window.jQuery(messageTabMenu).messageTabMenu("showTab", "attachments"); + window.jQuery(messageTabMenu).messageTabMenu("showTab", "attachments", true); }) .collectMetaData((payload) => { let context = undefined;