From: Marcel Werk Date: Thu, 27 Feb 2014 23:54:35 +0000 (+0100) Subject: Fixed small issue X-Git-Tag: 2.0.3~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50920dbb36ae290b0e2202a9dc42790d6be3d7d1;p=GitHub%2FWoltLab%2FWCF.git Fixed small issue --- diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index 6de0c96fac..2592ad8e94 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -52,7 +52,7 @@ var $followingList = null; $('#followingAll').click(function() { if ($followingList === null) { - $followingList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowingAction', '{lang}wcf.user.profile.following{/lang}', { userID: {@$user->userID} }); + $followingList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowingAction', $('#followingAll').parents('fieldset').children('legend').text().replace(/ \d+$/, ''), { userID: {@$user->userID} }); } $followingList.open(); @@ -62,7 +62,7 @@ var $followerList = null; $('#followerAll').click(function() { if ($followerList === null) { - $followerList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowAction', '{lang}wcf.user.profile.followers{/lang}', { userID: {@$user->userID} }); + $followerList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowAction', $('#followerAll').parents('fieldset').children('legend').text().replace(/ \d+$/, ''), { userID: {@$user->userID} }); } $followerList.open(); @@ -72,7 +72,7 @@ var $visitorList = null; $('#visitorAll').click(function() { if ($visitorList === null) { - $visitorList = new WCF.User.List('wcf\\data\\user\\profile\\visitor\\UserProfileVisitorAction', '{lang}wcf.user.profile.visitors{/lang}', { userID: {@$user->userID} }); + $visitorList = new WCF.User.List('wcf\\data\\user\\profile\\visitor\\UserProfileVisitorAction', $('#visitorAll').parents('fieldset').children('legend').text().replace(/ \d+$/, ''), { userID: {@$user->userID} }); } $visitorList.open();