Outdated JS files
authorAlexander Ebert <ebert@woltlab.com>
Fri, 6 Nov 2020 11:28:59 +0000 (12:28 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 6 Nov 2020 11:28:59 +0000 (12:28 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Reply.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/Share.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/TwitterEmbed.js

index c6a6dab9de4cb35b08eda5f1419a05c7b48b5a04..b393534272f0fe33924dcee18a1fcfbb17b7aa6c 100644 (file)
@@ -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);
                 }
             }
index eb73e220f2d9ee8b5086e40314936fcfbcc1dd25..ebab5b4b6ddf96f20b3af76f5d9a1979dbf7d7cf 100644 (file)
@@ -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) {
index 8233091d6fd59ae4f98f2f74896741be3d5f476d..2b83efac152d968b01ec97b4bb949c59087da1bc 100644 (file)
@@ -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,
         });