1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

updated mbt endpoints

This commit is contained in:
Luke Pulverenti 2013-10-18 12:09:47 -04:00
parent b1901ee91e
commit 707f6ab48b
24 changed files with 801 additions and 585 deletions

View file

@ -45,6 +45,8 @@
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
updateFilterControls(page);
var checkSortOption = $('.radioSortBy:checked', page);
$('.viewSummary', page).html(LibraryBrowser.getViewSummaryHtml(query, checkSortOption)).trigger('create');
@ -61,7 +63,11 @@
$('#items', page).html(html).trigger('create');
$('.btnChangeToDefaultSort', page).on('click', function () {
$('.defaultSort', page)[0].click();
query.StartIndex = 0;
query.SortOrder = 'Ascending';
query.SortBy = $('.defaultSort', page).data('sortby');
reloadItems(page);
});
$('.selectPage', page).on('change', function () {
@ -116,8 +122,6 @@
LibraryBrowser.saveQueryValues('songs', query);
Dashboard.hideLoadingMsg();
$(page).trigger('itemsreloaded');
});
}
@ -162,9 +166,6 @@
updateFilterControls(this);
}).on('itemsreloaded', "#songsPage", function () {
updateFilterControls(this);
});
})(jQuery, document);