Typo + ES5-incompatible syntax
authorAlexander Ebert <ebert@woltlab.com>
Mon, 12 Apr 2021 09:13:26 +0000 (11:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 12 Apr 2021 09:13:26 +0000 (11:13 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js

index d97b619f26d9e13d4d2c4169b5b507cf389d9224..79dc16c81574437bfdc9aaf19039fd8559884d9b 100644 (file)
@@ -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();
index 46bcaa824b41e16f8b37f8d005b12059da4e2794..b1d8eeb71472c17254c18629f529c03cee61a514 100644 (file)
@@ -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;
                                }
                        });