share button class name changed to prevent blocking by ad blockers
authorMarcel Werk <burntime@woltlab.com>
Wed, 28 Jul 2021 14:07:48 +0000 (16:07 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 28 Jul 2021 14:07:48 +0000 (16:07 +0200)
com.woltlab.wcf/templates/article.tpl
com.woltlab.wcf/templates/cms.tpl
ts/WoltLabSuite/Core/Ui/Message/Share/Dialog.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Share/Dialog.js

index 93f0acb7c00808b9ba145dcbd6019efe1803ed2c..dbb8776e46030ef21ef4176f9a831a0316614de5 100644 (file)
                        <div class="col-xs-12 col-md-6 col-md{if !(MODULE_LIKE && ARTICLE_ENABLE_LIKE && $__wcf->session->getPermission('user.like.canViewLike'))} col-md-offset-6{/if}">
                                <ul class="articleLikeButtons buttonGroup buttonList smallButtons">
                                        <li>
-                                               <a href="{$articleContent->getLink()}" class="button shareButton jsOnly" data-link-title="{$articleContent->getTitle()}">
+                                               <a href="{$articleContent->getLink()}" class="button wsShareButton jsOnly" data-link-title="{$articleContent->getTitle()}">
                                                        <span class="icon icon16 fa-share-alt"></span> <span>{lang}wcf.message.share{/lang}</span>
                                                </a>
                                        </li>
index eb29f7c6a66f27dbe9d5978906f797da186dcf45..cd6934864a6c6eb8c24493537c1a333eaf621dd6 100644 (file)
@@ -14,7 +14,7 @@
 {capture assign='contentHeaderNavigation'}
        {if $page->showShareButtons()}
                <li>
-                       <a href="{$content->getLink()}" class="button shareButton jsOnly" data-link-title="{$content->getTitle()}">
+                       <a href="{$content->getLink()}" class="button wsShareButton jsOnly" data-link-title="{$content->getTitle()}">
                                <span class="icon icon16 fa-share-alt"></span> <span>{lang}wcf.message.share{/lang}</span>
                        </a>
                </li>
index f090976e0d676ac8af25d2d9a08c5d5da454bcdf..a923db61142de7af3a1133ffd973994a557192e9 100644 (file)
@@ -189,7 +189,7 @@ function openDialog(event: MouseEvent): void {
 }
 
 function registerButtons(): void {
-  document.querySelectorAll("a.shareButton").forEach((shareButton: HTMLElement) => {
+  document.querySelectorAll("a.wsShareButton").forEach((shareButton: HTMLElement) => {
     if (!shareButtons.has(shareButton)) {
       shareButton.addEventListener("click", (ev) => openDialog(ev));
 
index ecaf9ec696a01fa37658f16fc216c164be900aa8..c120e4ea957f9b4a1eeed8b3e1d213c4cf27bc68 100644 (file)
@@ -153,7 +153,7 @@ define(["require", "exports", "tslib", "../../Dialog", "../../../Dom/Util", "../
         }
     }
     function registerButtons() {
-        document.querySelectorAll("a.shareButton").forEach((shareButton) => {
+        document.querySelectorAll("a.wsShareButton").forEach((shareButton) => {
             if (!shareButtons.has(shareButton)) {
                 shareButton.addEventListener("click", (ev) => openDialog(ev));
                 shareButtons.add(shareButton);