Fix incorrect usage of classList
authorJoshua Rüsweg <ruesweg@woltlab.com>
Mon, 6 Jan 2020 17:07:46 +0000 (18:07 +0100)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Mon, 6 Jan 2020 17:08:38 +0000 (18:08 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Upload.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Reaction/Handler.js

index 816d4abda0d815b4887d714d0a9be692d40000d8..6789618bd0463c3260c5db12494d02fe5ec9ebb2 100644 (file)
@@ -74,7 +74,7 @@ define(['Core', 'Language', 'Dom/Util', 'WoltLabSuite/Core/Ui/File/Delete', 'Upl
                        var progress = elBySel('progress', element);
                        
                        var icon = elCreate('span');
-                       icon.classList = 'icon icon64 fa-spinner';
+                       icon.className = 'icon icon64 fa-spinner';
                        
                        var fileName = element.textContent;
                        element.textContent = "";
@@ -94,7 +94,7 @@ define(['Core', 'Language', 'Dom/Util', 'WoltLabSuite/Core/Ui/File/Delete', 'Upl
                        div.appendChild(innerDiv);
                        
                        var ul = elCreate('ul');
-                       ul.classList = 'buttonGroup';
+                       ul.className = 'buttonGroup';
                        div.appendChild(ul);
                        
                        // reset element textContent and replace with own element style
@@ -113,7 +113,7 @@ define(['Core', 'Language', 'Dom/Util', 'WoltLabSuite/Core/Ui/File/Delete', 'Upl
                                icon.classList.add('fa-ban');
                                
                                var innerError = elCreate('span');
-                               innerError.classList = 'innerError';
+                               innerError.className = 'innerError';
                                innerError.textContent = Language.get('wcf.upload.error.uploadFailed');
                                DomUtil.insertAfter(innerError, elBySel('small', this._fileElements[uploadId][i]));
                        }
@@ -168,7 +168,7 @@ define(['Core', 'Language', 'Dom/Util', 'WoltLabSuite/Core/Ui/File/Delete', 'Upl
                                        
                                        if (elBySel('.innerError', this._fileElements[uploadId][i]) === null) {
                                                var innerError = elCreate('span');
-                                               innerError.classList = 'innerError';
+                                               innerError.className = 'innerError';
                                                innerError.textContent = data['error'][i].errorMessage;
                                                DomUtil.insertAfter(innerError, elBySel('small', this._fileElements[uploadId][i]));
                                        }
@@ -201,7 +201,7 @@ define(['Core', 'Language', 'Dom/Util', 'WoltLabSuite/Core/Ui/File/Delete', 'Upl
                                
                                if (innerError === null) {
                                        innerError = elCreate('small');
-                                       innerError.classList = 'innerError';
+                                       innerError.className = 'innerError';
                                        DomUtil.insertAfter(innerError, this._buttonContainer);
                                }
                                
index 06510ee8225f53d7a492b09615caf08f18ff848f..072a87230f4f17f78bdd16b856ef2f68e048bf83 100644 (file)
@@ -176,7 +176,7 @@ define(
                                var messageFooterGroup = element.closest('.messageFooterGroup');
                                
                                var button = elCreate('button');
-                               button.classList = 'mobileReactButton';
+                               button.className = 'mobileReactButton';
                                button.innerHTML = element.innerHTML;
                                
                                button.addEventListener(WCF_CLICK_EVENT, this._toggleReactPopover.bind(this, objectID, button));
@@ -316,7 +316,7 @@ define(
                                                reactionTypeItem.title = reactionType.title;
                                                
                                                var reactionTypeItemSpan = elCreate('span');
-                                               reactionTypeItemSpan.classList = 'reactionTypeButtonTitle';
+                                               reactionTypeItemSpan.className = 'reactionTypeButtonTitle';
                                                reactionTypeItemSpan.innerHTML = reactionType.title;
 
                                                //noinspection JSUnresolvedVariable