From 796a1155a4aba76466c8b15e4691e85c48505ec6 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 16 Sep 2019 18:15:46 +0200 Subject: [PATCH] Make `__messageQuoteManager` template available in ACP MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … to have consistency between frontend and backend with regard to WYSIWYG form fields. --- .../templates/__messageQuoteManager.tpl | 2 +- syncTemplates.json | 1 + .../files/acp/templates/__messageQuoteManager.tpl | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl diff --git a/com.woltlab.wcf/templates/__messageQuoteManager.tpl b/com.woltlab.wcf/templates/__messageQuoteManager.tpl index 92a2ad34e9..fd0798d128 100644 --- a/com.woltlab.wcf/templates/__messageQuoteManager.tpl +++ b/com.woltlab.wcf/templates/__messageQuoteManager.tpl @@ -11,4 +11,4 @@ WCF.Language.addObject({ {if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=''}{/if} {if !$supportPaste|isset}{assign var=supportPaste value=false}{/if} -var $quoteManager = new WCF.Message.Quote.Manager({@$__quoteCount}, '{$wysiwygSelector|encodeJS}', {if $supportPaste}true{else}false{/if}, [ {implode from=$__quoteRemove item=quoteID}'{$quoteID}'{/implode} ]); \ No newline at end of file +var $quoteManager = new WCF.Message.Quote.Manager({@$__quoteCount}, '{$wysiwygSelector|encodeJS}', {if $supportPaste}true{else}false{/if}, [ {implode from=$__quoteRemove item=quoteID}'{$quoteID}'{/implode} ]); diff --git a/syncTemplates.json b/syncTemplates.json index d1f698bfbe..041f95446a 100644 --- a/syncTemplates.json +++ b/syncTemplates.json @@ -25,6 +25,7 @@ "__itemListFormField", "__labelFormField", "__mediaSetCategoryDialog", + "__messageQuoteManager", "__multilineTextFormField", "__multiPageCondition", "__multipleSelectionFormField", diff --git a/wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl b/wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl new file mode 100644 index 0000000000..fd0798d128 --- /dev/null +++ b/wcfsetup/install/files/acp/templates/__messageQuoteManager.tpl @@ -0,0 +1,14 @@ +WCF.Language.addObject({ + 'wcf.message.quote.insertAllQuotes': '{lang}wcf.message.quote.insertAllQuotes{/lang}', + 'wcf.message.quote.insertSelectedQuotes': '{lang}wcf.message.quote.insertSelectedQuotes{/lang}', + 'wcf.message.quote.manageQuotes': '{lang}wcf.message.quote.manageQuotes{/lang}', + 'wcf.message.quote.quoteSelected': '{lang}wcf.message.quote.quoteSelected{/lang}', + 'wcf.message.quote.quoteAndReply': '{lang}wcf.message.quote.quoteAndReply{/lang}', + 'wcf.message.quote.removeAllQuotes': '{lang}wcf.message.quote.removeAllQuotes{/lang}', + 'wcf.message.quote.removeSelectedQuotes': '{lang}wcf.message.quote.removeSelectedQuotes{/lang}', + 'wcf.message.quote.showQuotes': '{lang}wcf.message.quote.showQuotes{/lang}' +}); + +{if !$wysiwygSelector|isset}{assign var=wysiwygSelector value=''}{/if} +{if !$supportPaste|isset}{assign var=supportPaste value=false}{/if} +var $quoteManager = new WCF.Message.Quote.Manager({@$__quoteCount}, '{$wysiwygSelector|encodeJS}', {if $supportPaste}true{else}false{/if}, [ {implode from=$__quoteRemove item=quoteID}'{$quoteID}'{/implode} ]); -- 2.20.1