From: Marcel Werk Date: Wed, 11 Sep 2024 13:27:28 +0000 (+0200) Subject: Reset to page 1 when changing sort order X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a1913850c4ea3df7ddd937ba7140382c254965c0;p=GitHub%2FWoltLab%2FWCF.git Reset to page 1 when changing sort order --- diff --git a/ts/WoltLabSuite/Core/Component/GridView.ts b/ts/WoltLabSuite/Core/Component/GridView.ts index ffe7e65b9f..c0b1ca299a 100644 --- a/ts/WoltLabSuite/Core/Component/GridView.ts +++ b/ts/WoltLabSuite/Core/Component/GridView.ts @@ -65,7 +65,7 @@ export class GridView { this.#sortOrder = "ASC"; } - this.#loadRows(); + this.#switchPage(1); this.#renderActiveSorting(); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js index 3178cad306..8e7876ed29 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView.js @@ -53,7 +53,7 @@ define(["require", "exports", "tslib", "../Api/GridViews/GetRows", "../Dom/Util" this.#sortField = sortField; this.#sortOrder = "ASC"; } - this.#loadRows(); + this.#switchPage(1); this.#renderActiveSorting(); } #renderActiveSorting() {