Apply suggestions from code review
authorMarcel Werk <burntime@woltlab.com>
Mon, 15 Aug 2022 16:31:51 +0000 (18:31 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Aug 2022 16:31:51 +0000 (18:31 +0200)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
com.woltlab.wcf/templates/__userObjectWatchButton.tpl
com.woltlab.wcf/templates/categoryArticleList.tpl

index 4bc2afaaac580c85a986a2827af99ea9d304ce1f..8a98ab45a8fbf9f9b3ed0683fd504239b66f04a8 100644 (file)
        </div>
     
     <script data-relocate="true">
-               require([ 'WoltLabSuite/Core/Ui/User/ObjectWatch', 'Language'], function (ObjectWatch, Language) {
+               require(['WoltLabSuite/Core/Ui/User/ObjectWatch', 'WoltLabSuite/Core/Language'], (ObjectWatch, Language) => {
                        Language.addObject({
                                'wcf.user.objectWatch.button.subscribe': '{jslang}wcf.user.objectWatch.button.subscribe{/jslang}',
-                'wcf.user.objectWatch.button.subscribed': '{jslang}wcf.user.objectWatch.button.subscribed{/jslang}',
+                               'wcf.user.objectWatch.button.subscribed': '{jslang}wcf.user.objectWatch.button.subscribed{/jslang}',
                        })
 
                        ObjectWatch.setup();
index fecbe3989e9c44fd4e7d884e749b0e0b027a2582..249bca68d1d686b5538db540d8cba5ed94f0b8fe 100644 (file)
@@ -63,7 +63,7 @@
 {/capture}
 
 {capture assign='contentInteractionButtons'}
-       {include file='__userObjectWatchButton' isSubscribed=$category->isSubscribed() objectType="com.woltlab.wcf.article.category" objectID=$category->categoryID}
+       {include file='__userObjectWatchButton' isSubscribed=$category->isSubscribed() objectType='com.woltlab.wcf.article.category' objectID=$category->categoryID}
        
        {if ARTICLE_ENABLE_VISIT_TRACKING}
                <a href="#" class="markAllAsReadButton contentInteractionButton button small jsOnly"><span class="icon icon16 fa-check"></span> <span>{lang}wcf.global.button.markAllAsRead{/lang}</span></a>