From 90be647d0e1041be8a1990f2440dd2202dc7251e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 22 Nov 2017 06:40:12 +0100 Subject: [PATCH] Use `className` instead of `classList` for setting css classes --- .../js/WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup.js | 2 +- .../files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js | 2 +- .../install/files/js/WoltLabSuite/Core/Media/List/Upload.js | 2 +- wcfsetup/install/files/js/WoltLabSuite/Core/Media/Upload.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup.js index aba21f3f45..6b0049a957 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup.js @@ -108,7 +108,7 @@ define([ if (createPathError && innerError === null) { innerError = elCreate('small'); - innerError.classList = 'innerError'; + innerError.className = 'innerError'; DomUtil.insertAfter(innerError, _pathInput); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js index 4b5025acdc..5cfe4af718 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js @@ -191,7 +191,7 @@ define([ if (this._errorMessage === undefined) { this._errorMessage = elCreate('small'); - this._errorMessage.classList = 'innerError'; + this._errorMessage.className = 'innerError'; DomUtil.insertAfter(this._errorMessage, this._originInput); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js index eb48dd6a2a..b9f4d48239 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js @@ -48,7 +48,7 @@ define( MediaListUpload._super.prototype._createButton.call(this); var icon = elCreate('span'); - icon.classList = 'icon icon16 fa-upload'; + icon.className = 'icon icon16 fa-upload'; DomUtil.prepend(icon, elBySel('span', this._button)); }, diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Upload.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Upload.js index 264df7407e..1dc70438bd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Upload.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Upload.js @@ -124,7 +124,7 @@ define( } var spinner = elCreate('span'); - spinner.classList = 'icon icon48 fa-spinner mediaThumbnail'; + spinner.className = 'icon icon48 fa-spinner mediaThumbnail'; DomUtil.replaceElement(image[0], spinner); -- 2.20.1