Use `className` instead of `classList` for setting css classes
authorMatthias Schmidt <gravatronics@live.com>
Wed, 22 Nov 2017 05:40:12 +0000 (06:40 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 22 Nov 2017 05:40:12 +0000 (06:40 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup.js
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Map/Route/Planner.js
wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js
wcfsetup/install/files/js/WoltLabSuite/Core/Media/Upload.js

index aba21f3f45ebd3313de1c4c2ef01d9a22c3f9fda..6b0049a9570ba1cdd819949eaa59d744102efdb3 100644 (file)
@@ -108,7 +108,7 @@ define([
                        
                        if (createPathError && innerError === null) {
                                innerError = elCreate('small');
-                               innerError.classList = 'innerError';
+                               innerError.className = 'innerError';
                                
                                DomUtil.insertAfter(innerError, _pathInput);
                        }
index 4b5025acdcd74ca51831a58d9510214ab9be747f..5cfe4af7182560e0f5e679c15606c6be52591ffb 100644 (file)
@@ -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);
                                }
index eb48dd6a2ad3ca87f5a9ad03e2ea58faab0d4908..b9f4d48239f4c5b3f46b52d1cb5d1ebe15705e58 100644 (file)
@@ -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));
                },
                
index 264df7407ed89db6233513e76de7ced0ae84fd57..1dc70438bdd0504611b0e09d5f03e5b080a6e266 100644 (file)
@@ -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);