Fixed profile overlays displaying empty title
authorAlexander Ebert <ebert@woltlab.com>
Tue, 9 Aug 2016 10:01:48 +0000 (12:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 9 Aug 2016 10:01:53 +0000 (12:01 +0200)
com.woltlab.wcf/templates/user.tpl

index ca751b4381bee088ca281d4d6874489d2a309c46..4f1000671f7401177631a9ebaeb4fc03068e18c7 100644 (file)
@@ -71,7 +71,7 @@
                                var $followingList = null;
                                $('#followingAll').click(function() {
                                        if ($followingList === null) {
-                                               $followingList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowingAction', $('#followingAll').parents('fieldset').children('legend').text().replace(/ \d+$/, ''), { userID: {@$user->userID} });
+                                               $followingList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowingAction', $('#followingAll').parents('section').children('.boxTitle').text().replace(/ \d+$/, ''), { userID: {@$user->userID} });
                                        }
                                        
                                        $followingList.open();
@@ -81,7 +81,7 @@
                                var $followerList = null;
                                $('#followerAll').click(function() {
                                        if ($followerList === null) {
-                                               $followerList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowAction', $('#followerAll').parents('fieldset').children('legend').text().replace(/ \d+$/, ''), { userID: {@$user->userID} });
+                                               $followerList = new WCF.User.List('wcf\\data\\user\\follow\\UserFollowAction', $('#followerAll').parents('section').children('.boxTitle').text().replace(/ \d+$/, ''), { userID: {@$user->userID} });
                                        }
                                        
                                        $followerList.open();
@@ -91,7 +91,7 @@
                                var $visitorList = null;
                                $('#visitorAll').click(function() {
                                        if ($visitorList === null) {
-                                               $visitorList = new WCF.User.List('wcf\\data\\user\\profile\\visitor\\UserProfileVisitorAction', $('#visitorAll').parents('fieldset').children('legend').text().replace(/ \d+$/, ''), { userID: {@$user->userID} });
+                                               $visitorList = new WCF.User.List('wcf\\data\\user\\profile\\visitor\\UserProfileVisitorAction', $('#visitorAll').parents('section').children('.boxTitle').text().replace(/ \d+$/, ''), { userID: {@$user->userID} });
                                        }
                                        
                                        $visitorList.open();