Prevent page jumping in Ui/User/Throphy/List
authorFabii547 <Fabii547@users.noreply.github.com>
Mon, 7 Aug 2017 11:41:43 +0000 (13:41 +0200)
committerFabii547 <Fabii547@users.noreply.github.com>
Mon, 7 Aug 2017 11:41:43 +0000 (13:41 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js

index 0e5a1abc0ecff772bc35be6275d99eb0c4b2ed4b..840ea9bbe1b03d9a47709b48ea53f2f08143ff9c 100644 (file)
@@ -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();
                },