From e68dca85359d2e5eee05ec04b617fb5ca1f73a12 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 5 Jul 2021 13:52:54 +0200 Subject: [PATCH] Deprecate `WCF.Conversation.Message.QuoteHandler` in favor of `Ui/Message/Quote` --- files/js/WCF.Conversation.js | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/files/js/WCF.Conversation.js b/files/js/WCF.Conversation.js index 2ba0fe5..eaf4f1c 100644 --- a/files/js/WCF.Conversation.js +++ b/files/js/WCF.Conversation.js @@ -1448,24 +1448,15 @@ WCF.Conversation.Message.InlineEditor = WCF.Message.InlineEditor.extend({ }); /** - * Provides the quote manager for conversation messages. - * - * @param WCF.Message.Quote.Manager quoteManager - * @see WCF.Message.Quote.Handler + * @deprecated 5.5, use `WoltLabSuite/Core/Conversation/Ui/Message/Quote` instead */ WCF.Conversation.Message.QuoteHandler = WCF.Message.Quote.Handler.extend({ /** * @see WCF.Message.QuoteManager.init() */ init: function(quoteManager) { - this._super( - quoteManager, - 'wcf\\data\\conversation\\message\\ConversationMessageAction', - 'com.woltlab.wcf.conversation.message', - '.message', - '.messageBody', - '.messageBody > div > div.messageText', - true - ); + require(["WoltLabSuite/Core/Conversation/Ui/Message/Quote"], ({ UiConversationMessageQuote }) => { + new UiConversationMessageQuote(quoteManager); + }); } }); -- 2.20.1