From db4bad0dd32ac55a9a1189711303eb09d4005f3b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 12 Apr 2021 11:13:26 +0200 Subject: [PATCH] Typo + ES5-incompatible syntax --- .../files/js/3rdParty/redactor2/plugins/WoltLabPaste.js | 2 +- .../install/files/js/WoltLabSuite/Core/Ui/Page/Action.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js index d97b619f26..79dc16c815 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js @@ -351,7 +351,7 @@ $.Redactor.prototype.WoltLabPaste = function() { if (!data.pre && !data.text) { elBySelAll('img', div, (function(img) { var src = img.src; - if ((src.indexOf('data:image') === 0 | src.indexOf("blob:") === 0) && src !== transparentGif) { + if ((src.indexOf('data:image') === 0 || src.indexOf("blob:") === 0) && src !== transparentGif) { img.src = transparentGif; var uuid = WCF.getUUID(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js index 46bcaa824b..b1d8eeb714 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js @@ -86,13 +86,13 @@ define(['Dictionary', 'Language', 'Ui/Screen'], function (Dictionary, Language, }, {passive: true}); UiScreen.on('screen-sm-down', { - match() { + match: function() { _toTopButtonThreshold = 50; }, - unmatch() { + unmatch: function() { _toTopButtonThreshold = 300; }, - setup() { + setup: function() { _toTopButtonThreshold = 50; } }); -- 2.20.1