{if $objects|count}
<div class="section sectionContainerList">
- <ol class="containerList userList jsReloadPageWhenEmpty">
+ <ol class="containerList userList jsReloadPageWhenEmpty jsObjectActionContainer" data-object-action-class-name="wcf\data\user\follow\UserFollowAction">
{foreach from=$objects item=user}
- <li class="jsFollowing">
+ <li class="jsFollowing jsObjectActionObject" data-object-id="{@$user->getObjectID()}">
<div class="box48">
{user object=$user type='avatar48' ariaHidden='true' tabindex='-1'}
<nav class="jsMobileNavigation buttonGroupNavigation">
<ul class="buttonList iconList jsOnly">
- <li><a class="pointer jsTooltip jsDeleteButton" title="{lang}wcf.user.button.unfollow{/lang}" data-object-id="{@$user->followID}"><span class="icon icon16 fa-times"></span> <span class="invisible">{lang}wcf.user.button.unfollow{/lang}</span></a></li>
+ <li><a class="pointer jsTooltip jsObjectAction" data-object-action="delete" title="{lang}wcf.user.button.unfollow{/lang}" data-object-id="{@$user->followID}"><span class="icon icon16 fa-times"></span> <span class="invisible">{lang}wcf.user.button.unfollow{/lang}</span></a></li>
{event name='userButtons'}
</ul>
</nav>
<p class="info" role="status">{lang}wcf.user.following.noUsers{/lang}</p>
{/if}
-<script data-relocate="true">
- $(function() {
- new WCF.Action.Delete('wcf\\data\\user\\follow\\UserFollowAction', '.jsFollowing');
- });
-</script>
-
{include file='footer'}
{if $objects|count}
<div class="section sectionContainerList">
- <ol class="containerList userList jsReloadPageWhenEmpty">
+ <ol class="containerList userList jsReloadPageWhenEmpty jsObjectActionContainer" data-object-action-class-name="wcf\data\user\ignore\UserIgnoreAction">
{foreach from=$objects item=user}
- <li class="jsIgnoredUser">
+ <li class="jsIgnoredUser jsObjectActionObject" data-object-id="{@$user->getObjectID()}">
<div class="box48">
{user object=$user type='avatar48' ariaHidden='true' tabindex='-1'}
<nav class="jsMobileNavigation buttonGroupNavigation">
<ul class="buttonList iconList jsOnly">
- <li><a class="pointer jsTooltip jsDeleteButton" title="{lang}wcf.user.button.unignore{/lang}" data-object-id="{@$user->ignoreID}"><span class="icon icon16 fa-times"></span> <span class="invisible">{lang}wcf.user.button.unignore{/lang}</span></a></li>
+ <li><a class="pointer jsTooltip jsObjectAction" data-object-action="delete" title="{lang}wcf.user.button.unignore{/lang}" data-object-id="{@$user->ignoreID}"><span class="icon icon16 fa-times"></span> <span class="invisible">{lang}wcf.user.button.unignore{/lang}</span></a></li>
{event name='userButtons'}
</ul>
</nav>
<p class="info" role="status">{lang}wcf.user.ignoredUsers.noUsers{/lang}</p>
{/if}
-<script data-relocate="true">
- $(function() {
- new WCF.Action.Delete('wcf\\data\\user\\ignore\\UserIgnoreAction', '.jsIgnoredUser');
- });
-</script>
-
{include file='footer'}