From 7bc08a83fb3e6f81a48f7169323b41a0ae5beab4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 6 Apr 2023 16:26:02 +0200 Subject: [PATCH] Fix the removal of the loading indicator when editing messages --- ts/WoltLabSuite/Core/Ui/Message/InlineEditor.ts | 2 +- .../files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/WoltLabSuite/Core/Ui/Message/InlineEditor.ts b/ts/WoltLabSuite/Core/Ui/Message/InlineEditor.ts index 2e7626372a..db6cef880f 100644 --- a/ts/WoltLabSuite/Core/Ui/Message/InlineEditor.ts +++ b/ts/WoltLabSuite/Core/Ui/Message/InlineEditor.ts @@ -612,7 +612,7 @@ class UiMessageInlineEditor implements AjaxCallbackObject { const elementData = this._elements.get(this._activeElement!)!; const messageBodyEditor = elementData.messageBodyEditor!; - messageBodyEditor.querySelector("fa-icon")!.remove(); + messageBodyEditor.querySelector('fa-icon[name="spinner"]')!.remove(); const editorContainer = messageBodyEditor.querySelector(".editorContainer") as HTMLElement; if (editorContainer !== null) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js index 9ae1fc64d3..473121e68a 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js @@ -479,7 +479,7 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Component/Ckeditor/Eve _restoreEditor() { const elementData = this._elements.get(this._activeElement); const messageBodyEditor = elementData.messageBodyEditor; - messageBodyEditor.querySelector("fa-icon").remove(); + messageBodyEditor.querySelector('fa-icon[name="spinner"]').remove(); const editorContainer = messageBodyEditor.querySelector(".editorContainer"); if (editorContainer !== null) { Util_1.default.show(editorContainer); -- 2.20.1