mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
2935b11798
5 changed files with 83 additions and 7 deletions
|
@ -40,6 +40,19 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="collapsible" id="moviesCollapsible">
|
||||
<h3>Titles</h3>
|
||||
<div id="moviesContent"></div>
|
||||
</div>
|
||||
<div data-role="collapsible" id="trailersCollapsible" class="hide">
|
||||
<h3>Trailers</h3>
|
||||
<div id="trailersContent"></div>
|
||||
</div>
|
||||
<div data-role="collapsible" id="galleryCollapsible">
|
||||
<h3>Gallery</h3>
|
||||
<div id="galleryContent"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
@ -110,10 +110,6 @@
|
|||
margin: 0 0 5px;
|
||||
}
|
||||
|
||||
.detailPagePrimaryInfo {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.itemMiscInfo {
|
||||
color: #ddd;
|
||||
font-size: 14px;
|
||||
|
@ -240,6 +236,12 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
@media all and (min-width: 650px) {
|
||||
.detailPagePrimaryInfo {
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 850px) {
|
||||
.posterDetailViewItem {
|
||||
width: 46%;
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
if (window.location.toString().toLowerCase().indexOf('localhost') != -1) {
|
||||
return 100;
|
||||
}
|
||||
return 25;
|
||||
return 20;
|
||||
},
|
||||
|
||||
getPosterDetailViewHtml: function (options) {
|
||||
|
|
|
@ -73,6 +73,24 @@
|
|||
$('#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);
|
||||
});
|
||||
}
|
||||
|
||||
function renderGallery(page, item) {
|
||||
|
||||
var imageTags = item.ImageTags || {};
|
||||
|
@ -149,6 +167,13 @@
|
|||
|
||||
reload(page);
|
||||
|
||||
$('#seasonsCollapsible', page).on('expand.lazyload', function () {
|
||||
|
||||
renderSeasons(page);
|
||||
|
||||
$(this).off('expand.lazyload');
|
||||
});
|
||||
|
||||
$('#castCollapsible', page).on('expand.lazyload', function () {
|
||||
renderCast(page, currentItem);
|
||||
|
||||
|
@ -167,6 +192,7 @@
|
|||
currentItem = null;
|
||||
var page = this;
|
||||
|
||||
$('#seasonsCollapsible', page).off('expand.lazyload');
|
||||
$('#castCollapsible', page).off('expand.lazyload');
|
||||
$('#galleryCollapsible', page).off('expand.lazyload');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue