Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Thu, 27 Feb 2014 23:54:35 +0000 (00:54 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 27 Feb 2014 23:54:35 +0000 (00:54 +0100)
com.woltlab.wcf/templates/user.tpl

index 6de0c96fac3d29833549bc1071ddf25566b83fd9..2592ad8e94bb879b54f131b113b7b996fb9715b2 100644 (file)
@@ -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();