From: Alexander Ebert Date: Sat, 5 Jul 2014 17:41:07 +0000 (+0200) Subject: Added experimental integration of message options in editor containers X-Git-Tag: 2.1.0_Alpha_1~616 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5fb04245afeed61e0fe36a7ed9247cde90e1841e;p=GitHub%2FWoltLab%2FWCF.git Added experimental integration of message options in editor containers --- diff --git a/com.woltlab.wcf/coreObject.xml b/com.woltlab.wcf/coreObject.xml index 634629004e..fec7b8fbd2 100644 --- a/com.woltlab.wcf/coreObject.xml +++ b/com.woltlab.wcf/coreObject.xml @@ -57,5 +57,9 @@ + + + + diff --git a/com.woltlab.wcf/templates/__messageFormSmilies.tpl b/com.woltlab.wcf/templates/__messageFormSmilies.tpl index a4204abeba..4a9ac6af4b 100644 --- a/com.woltlab.wcf/templates/__messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/__messageFormSmilies.tpl @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/com.woltlab.wcf/templates/messageFormAttachments.tpl b/com.woltlab.wcf/templates/messageFormAttachments.tpl index 7e95eea057..07e5105a4a 100644 --- a/com.woltlab.wcf/templates/messageFormAttachments.tpl +++ b/com.woltlab.wcf/templates/messageFormAttachments.tpl @@ -1,4 +1,4 @@ -
+
    getAttachmentList()|count} style="display: none"{/if}> {foreach from=$attachmentHandler->getAttachmentList() item=$attachment}
  • @@ -49,7 +49,7 @@ 'wcf.attachment.delete.sure': '{lang}wcf.attachment.delete.sure{/lang}' }); - new WCF.Attachment.Upload($('#attachments > dl > dd > div'), $('#attachments > ul'), '{@$attachmentObjectType}', '{@$attachmentObjectID}', '{$tmpHash|encodeJS}', '{@$attachmentParentObjectID}', {@$attachmentHandler->getMaxCount()}, '{@$wysiwygContainerID}'); + new WCF.Attachment.Upload($('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > dl > dd > div'), $('#attachments_{if $wysiwygSelector|isset}{$wysiwygSelector}{else}text{/if} > ul'), '{@$attachmentObjectType}', '{@$attachmentObjectID}', '{$tmpHash|encodeJS}', '{@$attachmentParentObjectID}', {@$attachmentHandler->getMaxCount()}, '{@$wysiwygContainerID}'); new WCF.Action.Delete('wcf\\data\\attachment\\AttachmentAction', '.formAttachmentList > li'); }); //]]> diff --git a/com.woltlab.wcf/templates/messageFormSmilies.tpl b/com.woltlab.wcf/templates/messageFormSmilies.tpl index b7b3d30293..f3abb1229d 100644 --- a/com.woltlab.wcf/templates/messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/messageFormSmilies.tpl @@ -3,17 +3,17 @@ {foreach from=$smileyCategories item=smileyCategory} {assign var=__tabCount value=$__tabCount + 1} {assign var='__smileyAnchor' value='smilies-'|concat:$smileyCategory->categoryID} -
  • {$smileyCategory->title|language}
  • +
  • {$smileyCategory->title|language}
  • {/foreach} {/capture} -
    +
    {capture assign=__defaultSmilies} {include file='__messageFormSmilies' smilies=$defaultSmilies} {/capture} {if $__tabCount > 1} -