From: Alexander Ebert Date: Sat, 16 Jul 2016 16:43:18 +0000 (+0200) Subject: Fixed selecting user's likes tab X-Git-Tag: 3.0.0_Beta_1~1105 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75988196deb4fc8d23147ee567e632cf339d281c;p=GitHub%2FWoltLab%2FWCF.git Fixed selecting user's likes tab --- diff --git a/com.woltlab.wcf/templates/userHeader.tpl b/com.woltlab.wcf/templates/userHeader.tpl index e674a145bf..dc6549696c 100644 --- a/com.woltlab.wcf/templates/userHeader.tpl +++ b/com.woltlab.wcf/templates/userHeader.tpl @@ -158,7 +158,7 @@ {if MODULE_LIKE && $user->likesReceived}
  • - {if !$user->isProtected()}{/if} + {if !$user->isProtected()}{/if} {@$user->likesReceived|shortUnit} {lang}wcf.like.likesReceived{/lang} {if !$user->isProtected()}{/if} diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 43174020b6..080c56bec4 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -814,6 +814,14 @@ WCF.User.Profile.TabMenu = Class.extend({ } }, this)); } + + $('.jsButtonUserLikes').click((function (event) { + event.preventDefault(); + + require(['Ui/TabMenu'], function (UiTabMenu) { + UiTabMenu.getTabMenu('profileContent').select('likes'); + }) + }).bind(this)) }, /**