From: Fabii547 Date: Mon, 7 Aug 2017 11:41:43 +0000 (+0200) Subject: Prevent page jumping in Ui/User/Throphy/List X-Git-Tag: 3.1.0_Alpha_1~70^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1516567af94d0fd863d6a140c28f27c52bc239ab;p=GitHub%2FWoltLab%2FWCF.git Prevent page jumping in Ui/User/Throphy/List --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js index 0e5a1abc0e..840ea9bbe1 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js @@ -32,10 +32,15 @@ define(['Ajax', 'Core', 'Dictionary', 'Dom/Util', 'Ui/Dialog', 'WoltLabSuite/Cor /** * Opens the user trophy list for a specific user. + * + * @param {int} userId + * @param {Event} event event object */ - _open: function(userID) { + _open: function(userId, event) { + event.preventDefault(); + this._currentPageNo = 1; - this._currentUser = userID; + this._currentUser = userId; this._showPage(); },