Updated comment implementation for articles/pages
authorAlexander Ebert <ebert@woltlab.com>
Mon, 6 Mar 2017 14:54:28 +0000 (15:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 6 Mar 2017 14:54:28 +0000 (15:54 +0100)
See #2223

com.woltlab.wcf/templates/article.tpl
com.woltlab.wcf/templates/boxPageComments.tpl

index cdbc8fee4b47557c2c745d3826534ba206b3b9d5..69b440d34cab312a7be7e0d21a93ca1274f87436 100644 (file)
                        {include file='__commentJavaScript' commentContainerID='articleCommentList'}
                        
                        <ul id="articleCommentList" class="commentList containerList" data-can-add="{if $commentCanAdd}true{else}false{/if}" data-object-id="{@$articleContentID}" data-object-type-id="{@$commentObjectTypeID}" data-comments="{@$commentList->countObjects()}" data-last-comment-time="{@$lastCommentTime}">
+                               {if $commentCanAdd}{include file='commentListAddComment' wysiwygSelector='articleCommentListAddComment'}{/if}
                                {include file='commentList'}
                        </ul>
                </section>
index d2e5a0d9260c44d6adfa33ccbb125b8a1fdaef64..76125f25779e36216d9c805cd49773ccb3672c3f 100644 (file)
@@ -1,5 +1,6 @@
 {include file='__commentJavaScript' commentContainerID='pageCommentList'}
 
 <ul id="pageCommentList" class="commentList containerList" data-can-add="{if $commentCanAdd}true{else}false{/if}" data-object-id="{@$pageID}" data-object-type-id="{@$commentObjectTypeID}" data-comments="{@$commentList->countObjects()}" data-last-comment-time="{@$lastCommentTime}">
+       {if $commentCanAdd}{include file='commentListAddComment' wysiwygSelector='pageCommentListAddComment'}{/if}
        {include file='commentList'}
 </ul>