1
0
Fork 0
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:
Luke Pulverenti 2013-10-17 12:24:35 -04:00
parent 5b88da66b0
commit afe5161947
45 changed files with 137 additions and 25 deletions

View file

@ -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'>&#9654;</span>";
var view = page.getAttribute('data-view') || getParameterByName('context');
if (counts.MovieCount || counts.TrailerCount) {