From: Alexander Ebert Date: Sat, 31 Oct 2020 23:38:36 +0000 (+0100) Subject: Incorrect DOM markup for upload buttons X-Git-Tag: 5.4.0_Alpha_1~660^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fb195f32d218f6d1b3bcf45a6ed6198931dddd8;p=GitHub%2FWoltLab%2FWCF.git Incorrect DOM markup for upload buttons --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Upload.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Upload.js index 708cb30a04..69140314e9 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Upload.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Upload.js @@ -87,7 +87,7 @@ define(["require", "exports", "tslib", "./Ajax/Request", "./Core", "./Dom/Change const span = document.createElement("span"); span.textContent = Language.get("wcf.global.button.upload"); this._button.appendChild(span); - this._buttonContainer.insertAdjacentElement("afterbegin", this._fileUpload); + this._button.insertAdjacentElement("afterbegin", this._fileUpload); this._insertButton(); Listener_1.default.trigger(); } diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Upload.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Upload.ts index 84e39fac4e..abd44db076 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Upload.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Upload.ts @@ -131,7 +131,7 @@ abstract class Upload { span.textContent = Language.get("wcf.global.button.upload"); this._button.appendChild(span); - this._buttonContainer.insertAdjacentElement("afterbegin", this._fileUpload); + this._button.insertAdjacentElement("afterbegin", this._fileUpload); this._insertButton();