Force the attachment tab to be open when uploading files by dropping
authorAlexander Ebert <ebert@woltlab.com>
Wed, 13 Nov 2024 16:08:18 +0000 (17:08 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 13 Nov 2024 16:08:18 +0000 (17:08 +0100)
Fixes #6034
Regression of #5988

ts/WoltLabSuite/Core/Component/Attachment/List.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/List.js

index 02f3211b6a29615b3485de120d1ce3967ab7eeca..8def637a7982cb2ae064478b57c14197af98e160 100644 (file)
@@ -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;
index 1f8f0183b51db7d9b2d6dcf99cdf771d8e930e36..518727b6d7e0a73c017df3e107fd5e93474e576f 100644 (file)
@@ -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;