From 2fb195f32d218f6d1b3bcf45a6ed6198931dddd8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 1 Nov 2020 00:38:36 +0100 Subject: [PATCH] Incorrect DOM markup for upload buttons --- wcfsetup/install/files/js/WoltLabSuite/Core/Upload.js | 2 +- wcfsetup/install/files/ts/WoltLabSuite/Core/Upload.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1