From: Joshua Rüsweg Date: Mon, 6 Aug 2018 11:52:57 +0000 (+0200) Subject: Remove superfluous parameters X-Git-Tag: 5.2.0_Alpha_1~364^2~101^2~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29434ea2d580ab51a390ea57394c17e0ca6912c6;p=GitHub%2FWoltLab%2FWCF.git Remove superfluous parameters See #2508 --- diff --git a/com.woltlab.wcf/templates/__commentJavaScript.tpl b/com.woltlab.wcf/templates/__commentJavaScript.tpl index 3dbe5c32dd..c717c51d87 100644 --- a/com.woltlab.wcf/templates/__commentJavaScript.tpl +++ b/com.woltlab.wcf/templates/__commentJavaScript.tpl @@ -17,36 +17,14 @@ new {if $commentHandlerClass|isset}{@$commentHandlerClass}{else}WCF.Comment.Handler{/if}('{$commentContainerID}'); {if MODULE_LIKE && $commentList->getCommentManager()->supportsLike() && $__wcf->getSession()->getPermission('user.like.canViewLike') || $__wcf->getSession()->getPermission('user.like.canLike')} require(['WoltLabSuite/Core/Ui/Reaction/Handler'], function(UiReactionHandler) { - var canLike = {if $__wcf->getUser()->userID && $__wcf->getSession()->getPermission('user.like.canLike')}true{else}false{/if}; - var canLikeOwnContent = {if LIKE_ALLOW_FOR_OWN_CONTENT}true{else}false{/if}; - new UiReactionHandler('com.woltlab.wcf.comment', { - // settings - badgeClassNames: 'separatorLeft', - markListItemAsActive: true, - renderAsButton: false, - - // permissions - canLike: canLike, - canLikeOwnContent: canLikeOwnContent, - // selectors containerSelector: 'li.comment', summaryListSelector: '.reactionSummaryList', isButtonGroupNavigation: true }); - new UiReactionHandler('com.woltlab.wcf.comment.response', { - // settings - badgeClassNames: 'separatorLeft', - markListItemAsActive: true, - renderAsButton: false, - - // permissions - canLike: canLike, - canLikeOwnContent: canLikeOwnContent, - // selectors containerSelector: '.commentResponse', summaryListSelector: '.reactionSummaryList',