mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update list pages to display current sort order
This commit is contained in:
parent
5b88da66b0
commit
afe5161947
45 changed files with 137 additions and 25 deletions
|
@ -1099,6 +1099,26 @@
|
|||
}
|
||||
},
|
||||
|
||||
getViewSummaryHtml: function (query, checkedSortOption) {
|
||||
|
||||
var html = '';
|
||||
|
||||
if (query.SortBy) {
|
||||
|
||||
var id = checkedSortOption[0].id;
|
||||
var sortBy = checkedSortOption.siblings('label[for=' + id + ']').text();
|
||||
|
||||
html += 'Sorted by ' + sortBy.trim().toLowerCase() + ' in ' + (query.SortOrder || 'ascending').toLowerCase() + ' order';
|
||||
|
||||
if (!checkedSortOption.hasClass('defaultSort')) {
|
||||
html += '<button class="btnChangeToDefaultSort" type="button" data-icon="delete" data-inline="true" data-mini="true" data-iconpos="notext">Remove</button>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return html;
|
||||
},
|
||||
|
||||
getPagingHtml: function (query, totalRecordCount) {
|
||||
|
||||
if (query.Limit) {
|
||||
|
@ -2092,7 +2112,7 @@
|
|||
|
||||
var selectedCssClass = ' selectedViewLink';
|
||||
var selectedHtml = "<span class='selectedViewIndicator'>▶</span>";
|
||||
|
||||
|
||||
var view = page.getAttribute('data-view') || getParameterByName('context');
|
||||
|
||||
if (counts.MovieCount || counts.TrailerCount) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue