From 0d49d8e6cc189119b588c83039bcd288382d0391 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 9 Aug 2016 12:01:48 +0200 Subject: [PATCH] Fixed profile overlays displaying empty title --- com.woltlab.wcf/templates/user.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.20.1