From: Marcel Werk Date: Wed, 28 Jul 2021 15:48:49 +0000 (+0200) Subject: Re-added previous share button selector to keep compatibility X-Git-Tag: 5.4.3~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20824ac7f94d3e0933773cb641019c146b706d73;p=GitHub%2FWoltLab%2FWCF.git Re-added previous share button selector to keep compatibility --- diff --git a/ts/WoltLabSuite/Core/Ui/Message/Share/Dialog.ts b/ts/WoltLabSuite/Core/Ui/Message/Share/Dialog.ts index a923db6114..6a22e4688d 100644 --- a/ts/WoltLabSuite/Core/Ui/Message/Share/Dialog.ts +++ b/ts/WoltLabSuite/Core/Ui/Message/Share/Dialog.ts @@ -189,7 +189,7 @@ function openDialog(event: MouseEvent): void { } function registerButtons(): void { - document.querySelectorAll("a.wsShareButton").forEach((shareButton: HTMLElement) => { + document.querySelectorAll("a.shareButton,a.wsShareButton").forEach((shareButton: HTMLElement) => { if (!shareButtons.has(shareButton)) { shareButton.addEventListener("click", (ev) => openDialog(ev));