Set paging default to "paged" (#218)
This commit is contained in:
@@ -19,8 +19,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<select id="profile_pref-LibraryPagination" data-pref="LibraryPagination" onchange="SavePrefValue_Value(this);">
|
<select id="profile_pref-LibraryPagination" data-pref="LibraryPagination" onchange="SavePrefValue_Value(this);">
|
||||||
<option value="infinite">Infinite scrolling</option>
|
|
||||||
<option value="paged">Paged</option>
|
<option value="paged">Paged</option>
|
||||||
|
<option value="infinite">Infinite scrolling</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
function GetPrefInitialValues() {
|
function GetPrefInitialValues() {
|
||||||
var paginationMode = document.getElementById('profile_pref-LibraryPagination');
|
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("LibraryShowGameTitle", GetPreference("LibraryShowGameTitle", true));
|
||||||
ConfigurePrefInitialValue_Checkbox("LibraryShowGameRating", GetPreference("LibraryShowGameRating", true));
|
ConfigurePrefInitialValue_Checkbox("LibraryShowGameRating", GetPreference("LibraryShowGameRating", true));
|
||||||
|
@@ -12,7 +12,7 @@ function formatGamesPanel(targetElement, result, pageNumber, pageSize) {
|
|||||||
console.log("Displaying page: " + pageNumber);
|
console.log("Displaying page: " + pageNumber);
|
||||||
console.log("Page size: " + pageSize);
|
console.log("Page size: " + pageSize);
|
||||||
|
|
||||||
var pageMode = GetPreference('LibraryPagination', 'infinite');
|
var pageMode = GetPreference('LibraryPagination', 'paged');
|
||||||
|
|
||||||
if (pageNumber == 1 || pageMode == 'paged') {
|
if (pageNumber == 1 || pageMode == 'paged') {
|
||||||
targetElement.innerHTML = '';
|
targetElement.innerHTML = '';
|
||||||
|
Reference in New Issue
Block a user