From: Matthias Schmidt Date: Mon, 16 Sep 2019 16:15:46 +0000 (+0200) Subject: Make `__messageQuoteManager` template available in ACP X-Git-Tag: 5.2.0_Beta_2~56 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=796a1155a4aba76466c8b15e4691e85c48505ec6;p=GitHub%2FWoltLab%2FWCF.git Make `__messageQuoteManager` template available in ACP … to have consistency between frontend and backend with regard to WYSIWYG form fields. --- 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} ]);