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

show seasons on series page

This commit is contained in:
Luke Pulverenti 2013-04-15 19:00:17 -04:00
parent d87dd85f1f
commit 1879df6806

View file

@ -58,9 +58,44 @@
function renderUserDataIcons(page, item) {
$('#itemRatings', page).html(LibraryBrowser.getUserDataIconsHtml(item));
}
function renderSeasons(page) {
ApiClient.getItems(Dashboard.getCurrentUserId(), {
ParentId: getParameterByName('id'),
SortBy: "SortName"
}).done(function(result) {
var html = LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
useAverageAspectRatio: true
});
$('#seasonsContent', page).html(html);
});
}
$(document).on('pageshow', "#tvSeriesPage", function () {
reload(this);
var page = this;
reload(page);
$('#seasonsCollapsible', page).on('expand.lazyload', function () {
renderSeasons(page);
$(this).off('expand.lazyload');
});
}).on('pagehide', "#tvSeriesPage", function () {
var page = this;
$('#seasonsCollapsible', page).off('expand.lazyload');
});