From: Alexander Ebert Date: Tue, 9 Aug 2016 10:01:48 +0000 (+0200) Subject: Fixed profile overlays displaying empty title X-Git-Tag: 3.0.0_Beta_1~783 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d49d8e6cc189119b588c83039bcd288382d0391;p=GitHub%2FWoltLab%2FWCF.git Fixed profile overlays displaying empty title --- diff --git a/com.woltlab.wcf/templates/user.tpl b/com.woltlab.wcf/templates/user.tpl index ca751b4381..4f1000671f 100644 --- a/com.woltlab.wcf/templates/user.tpl +++ b/com.woltlab.wcf/templates/user.tpl @@ -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();