From: Cyperghost Date: Tue, 12 Nov 2024 08:42:36 +0000 (+0100) Subject: Use a different name for attachments that belong to a form so that they are not group... X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7139810d7cc892e61a95fc1c3efd2c92ffab935;p=GitHub%2FWoltLab%2FWCF.git Use a different name for attachments that belong to a form so that they are not grouped together with those from the content --- diff --git a/ts/WoltLabSuite/Core/Component/Attachment/Entry.ts b/ts/WoltLabSuite/Core/Component/Attachment/Entry.ts index ab07eb7bad..f495f7b1f3 100644 --- a/ts/WoltLabSuite/Core/Component/Attachment/Entry.ts +++ b/ts/WoltLabSuite/Core/Component/Attachment/Entry.ts @@ -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; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/Entry.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/Entry.js index b91487d63f..79c9b70739 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/Entry.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Attachment/Entry.js @@ -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;