mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display movies on boxset page
This commit is contained in:
parent
157bb32f94
commit
e19fd498c0
2 changed files with 37 additions and 6 deletions
|
@ -59,8 +59,43 @@
|
|||
$('#itemRatings', page).html(LibraryBrowser.getUserDataIconsHtml(item));
|
||||
}
|
||||
|
||||
function renderMovies(page) {
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||
|
||||
ParentId: getParameterByName('id'),
|
||||
SortBy: "SortName"
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
var html = LibraryBrowser.getPosterDetailViewHtml({
|
||||
items: result.Items,
|
||||
useAverageAspectRatio: true
|
||||
});
|
||||
|
||||
|
||||
$('#moviesContent', page).html(html);
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#boxsetPage", function () {
|
||||
reload(this);
|
||||
|
||||
var page = this;
|
||||
|
||||
reload(page);
|
||||
|
||||
$('#moviesCollapsible', page).on('expand.lazyload', function () {
|
||||
|
||||
renderMovies(page);
|
||||
|
||||
$(this).off('expand.lazyload');
|
||||
});
|
||||
|
||||
}).on('pagehide', "#boxsetPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('#moviesCollapsible', page).off('expand.lazyload');
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue