Fixed follow/ignore buttons in birthday overlay
authorMarcel Werk <burntime@woltlab.com>
Thu, 2 Mar 2017 16:18:20 +0000 (17:18 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 2 Mar 2017 16:18:26 +0000 (17:18 +0100)
com.woltlab.wcf/templates/userBirthdayList.tpl

index 6a9f1b9fea652151d62e151c1f45dc522b4a7d54..779769c6bb1a64a174d4c392a6d95a19e087e9f5 100644 (file)
        </div>
 {else}
        <p class="info">{lang}wcf.global.noItems{/lang}</p>
-{/if}
\ No newline at end of file
+{/if}
+
+<script data-relocate="true">
+       $(function() {
+               WCF.Language.addObject({
+                       'wcf.user.button.follow': '{lang}wcf.user.button.follow{/lang}',
+                       'wcf.user.button.ignore': '{lang}wcf.user.button.ignore{/lang}',
+                       'wcf.user.button.unfollow': '{lang}wcf.user.button.unfollow{/lang}',
+                       'wcf.user.button.unignore': '{lang}wcf.user.button.unignore{/lang}'
+               });
+               
+               new WCF.User.Action.Follow($('.jsGroupedUserList > li'));
+               new WCF.User.Action.Ignore($('.jsGroupedUserList > li'));
+       });
+</script>