From 9e887e1a026f2db91e5bad4d8878939991968326 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 6 Nov 2020 12:28:59 +0100 Subject: [PATCH] Outdated JS files --- .../files/js/WoltLabSuite/Core/Ui/Message/Reply.js | 2 +- .../files/js/WoltLabSuite/Core/Ui/Message/Share.js | 7 ------- .../js/WoltLabSuite/Core/Ui/Message/TwitterEmbed.js | 9 +++------ 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js index c6a6dab9de..b393534272 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js @@ -86,7 +86,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Event/ }); } else { - parameters = Core.extend(parameters, Captcha_1.default.getData(captchaId)); + parameters = Core.extend(parameters, data); this._submit(undefined, parameters); } } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Share.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Share.js index eb73e220f2..ebab5b4b6d 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Share.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Share.js @@ -44,13 +44,6 @@ define(["require", "exports", "tslib", "../../Event/Handler", "../../StringUtil" share("facebook", "https://www.facebook.com/sharer.php?u={pageURL}&t={text}", true, pageUrl); }, }, - google: { - link: container.querySelector(".jsShareGoogle"), - share(event) { - event.preventDefault(); - share("google", "https://plus.google.com/share?url={pageURL}", false, pageUrl); - }, - }, reddit: { link: container.querySelector(".jsShareReddit"), share(event) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/TwitterEmbed.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/TwitterEmbed.js index 8233091d6f..2b83efac15 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/TwitterEmbed.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/TwitterEmbed.js @@ -21,12 +21,9 @@ define(["require", "exports", "https://platform.twitter.com/widgets.js"], functi * @param {boolean} removeChildren Whether to remove existing children of the given container after embedding the tweet. * @return {HTMLElement} The Tweet element created by Twitter. */ - async function embedTweet(container, tweetId, removeChildren) { - if (removeChildren === undefined) { - removeChildren = false; - } - await twitterReady; - const tweet = await twttr.widgets.createTweet(tweetId, container, { + async function embedTweet(container, tweetId, removeChildren = false) { + const twitter = await twitterReady; + const tweet = await twitter.widgets.createTweet(tweetId, container, { dnt: true, lang: document.documentElement.lang, }); -- 2.20.1