From 9e346910f451d506f1000b71f8ed31853821a7d6 Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:57:40 +1100 Subject: [PATCH] Set paging default to "paged" (#218) --- gaseous-server/wwwroot/pages/dialogs/userprofile.html | 4 ++-- gaseous-server/wwwroot/scripts/gamesformating.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gaseous-server/wwwroot/pages/dialogs/userprofile.html b/gaseous-server/wwwroot/pages/dialogs/userprofile.html index e238768..bad8d34 100644 --- a/gaseous-server/wwwroot/pages/dialogs/userprofile.html +++ b/gaseous-server/wwwroot/pages/dialogs/userprofile.html @@ -19,8 +19,8 @@ @@ -128,7 +128,7 @@ function GetPrefInitialValues() { var paginationMode = document.getElementById('profile_pref-LibraryPagination'); - paginationMode.value = GetPreference('LibraryPagination', 'infinite'); + paginationMode.value = GetPreference('LibraryPagination', 'paged'); ConfigurePrefInitialValue_Checkbox("LibraryShowGameTitle", GetPreference("LibraryShowGameTitle", true)); ConfigurePrefInitialValue_Checkbox("LibraryShowGameRating", GetPreference("LibraryShowGameRating", true)); diff --git a/gaseous-server/wwwroot/scripts/gamesformating.js b/gaseous-server/wwwroot/scripts/gamesformating.js index ed3b686..27f921d 100644 --- a/gaseous-server/wwwroot/scripts/gamesformating.js +++ b/gaseous-server/wwwroot/scripts/gamesformating.js @@ -12,7 +12,7 @@ function formatGamesPanel(targetElement, result, pageNumber, pageSize) { console.log("Displaying page: " + pageNumber); console.log("Page size: " + pageSize); - var pageMode = GetPreference('LibraryPagination', 'infinite'); + var pageMode = GetPreference('LibraryPagination', 'paged'); if (pageNumber == 1 || pageMode == 'paged') { targetElement.innerHTML = '';