Use a different name for attachments that belong to a form so that they are not group...
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 12 Nov 2024 08:42:36 +0000 (09:42 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 12 Nov 2024 08:42:36 +0000 (09:42 +0100)
ts/WoltLabSuite/Core/Component/Attachment/Entry.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/Entry.js

index ab07eb7bad617d4e124718a110d24fad72de0a24..f495f7b1f3cd776e66cf728eabb652aa0ae0e383 100644 (file)
@@ -59,7 +59,7 @@ function fileInitializationCompleted(element: HTMLElement, file: WoltlabCoreFile
     if (file.link !== undefined && file.filename !== undefined) {
       const link = document.createElement("a");
       link.href = file.link!;
-      link.dataset.fancybox = "attachments";
+      link.dataset.fancybox = "uploadedAttachments";
       link.title = file.filename;
       link.dataset.caption = file.filename;
       link.textContent = file.filename;
index b91487d63f5ca8af8a651d8d6db1225edfbc73bd..79c9b707390e4054599c5bf4dce64dfd595c230c 100644 (file)
@@ -43,7 +43,7 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Ui/Dropdown/Simple", "
             if (file.link !== undefined && file.filename !== undefined) {
                 const link = document.createElement("a");
                 link.href = file.link;
-                link.dataset.fancybox = "attachments";
+                link.dataset.fancybox = "uploadedAttachments";
                 link.title = file.filename;
                 link.dataset.caption = file.filename;
                 link.textContent = file.filename;