Replace legacy icons in JS files
authorAlexander Ebert <ebert@woltlab.com>
Fri, 12 Aug 2022 14:38:26 +0000 (16:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 12 Aug 2022 19:26:13 +0000 (21:26 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabButton.js
wcfsetup/install/files/js/WCF.Comment.js

index 049260458daab408cec58754cc565bbe77dd5892..94a2615b96f56e717fdcade52931b14e4cd88df6 100644 (file)
@@ -194,7 +194,7 @@ $.Redactor.prototype.WoltLabButton = function() {
                        _toggleButton.className = 'redactorToolbarToggle';
                        _toggleButton.innerHTML = `<a href="#" role="button" aria-label="${
                                        WCF.Language.get("wcf.global.button.more")
-                               }"><span class="icon icon16 fa-caret-down"></span></a>`;
+                               }"><fa-icon size="16" name="caret-down" solid></fa-icon></a>`;
                        elData(_toggleButton, 'show-on-mobile', true);
                        
                        var icon = _toggleButton.children[0].children[0];
index 82c33db426b304f21cb9f584a1536876843279d1..f660cfda84def3ca860f54edbe5b9f6d959d9528 100644 (file)
@@ -219,7 +219,7 @@ WCF.Comment.Handler = Class.extend({
        _loadCommentSegment: function (commentId, responseID) {
                this._permalinkComment = elCreate('li');
                this._permalinkComment.className = 'commentPermalinkContainer loading';
-               this._permalinkComment.innerHTML = '<span class="icon icon48 fa-spinner"></span>';
+               this._permalinkComment.innerHTML = '<fa-icon size="48" name="spinner" solid></fa-icon>';
                this._container[0].insertBefore(this._permalinkComment, this._container[0].firstChild);
                
                this._proxy.setOption('data', {
@@ -240,7 +240,7 @@ WCF.Comment.Handler = Class.extend({
        _loadResponseSegment: function (comment, commentId, responseID) {
                this._permalinkResponse = elCreate('li');
                this._permalinkResponse.className = 'commentResponsePermalinkContainer loading';
-               this._permalinkResponse.innerHTML = '<span class="icon icon32 fa-spinner"></span>';
+               this._permalinkResponse.innerHTML = '<fa-icon size="32" name="spinner" solid></fa-icon>';
                var responseList = elBySel('.commentResponseList', comment);
                responseList.insertBefore(this._permalinkResponse, responseList.firstChild);
                
@@ -745,7 +745,7 @@ WCF.Comment.Handler = Class.extend({
                if (data.returnValues.response) {
                        this._permalinkResponse = elCreate('li');
                        this._permalinkResponse.className = 'commentResponsePermalinkContainer loading';
-                       this._permalinkResponse.innerHTML = '<span class="icon icon32 fa-spinner"></span>';
+                       this._permalinkResponse.innerHTML = '<fa-icon size="32" name="spinner" solid></fa-icon>';
                        var responseList = elBySel('.commentResponseList', comment);
                        responseList.insertBefore(this._permalinkResponse, responseList.firstChild);