mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
re-enable chromecast
This commit is contained in:
parent
4d679e90a4
commit
3d1ee1233c
15 changed files with 901 additions and 796 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
getDefaultItemsView: function (view, mobileView) {
|
||||
|
||||
return view;
|
||||
return $.browser.mobile ? mobileView : view;
|
||||
|
||||
},
|
||||
|
||||
|
@ -578,9 +578,14 @@
|
|||
|
||||
},
|
||||
|
||||
getListViewIndex: function (item, sortBy) {
|
||||
getListViewIndex: function (item, options) {
|
||||
|
||||
sortBy = (sortBy || '').toLowerCase();
|
||||
if (options.index == 'disc') {
|
||||
|
||||
return item.ParentIndexNumber == null ? '' : 'Disc ' + item.ParentIndexNumber;
|
||||
}
|
||||
|
||||
var sortBy = (options.sortBy || '').toLowerCase();
|
||||
var code, name;
|
||||
|
||||
if (sortBy.indexOf('sortname') == 0) {
|
||||
|
@ -666,7 +671,8 @@
|
|||
var html = '';
|
||||
|
||||
if (options.showIndex !== false) {
|
||||
var itemGroupTitle = LibraryBrowser.getListViewIndex(item, options.sortBy);
|
||||
|
||||
var itemGroupTitle = LibraryBrowser.getListViewIndex(item, options);
|
||||
|
||||
if (itemGroupTitle != groupTitle) {
|
||||
|
||||
|
@ -2026,7 +2032,7 @@
|
|||
});
|
||||
},
|
||||
|
||||
getDetailImageHtml: function (item, href) {
|
||||
getDetailImageHtml: function (item, href, preferThumb) {
|
||||
|
||||
var imageTags = item.ImageTags || {};
|
||||
|
||||
|
@ -2040,7 +2046,15 @@
|
|||
|
||||
var imageHeight = 280;
|
||||
|
||||
if (imageTags.Primary) {
|
||||
if (preferThumb && imageTags.Thumb) {
|
||||
|
||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||
type: "Thumb",
|
||||
maxHeight: imageHeight,
|
||||
tag: item.ImageTags.Thumb
|
||||
});
|
||||
}
|
||||
else if (imageTags.Primary) {
|
||||
|
||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||
type: "Primary",
|
||||
|
@ -2263,6 +2277,12 @@
|
|||
$(this).attr("target", "_blank");
|
||||
});
|
||||
|
||||
if (overview) {
|
||||
elem.removeClass('empty');
|
||||
} else {
|
||||
elem.addClass('empty');
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
renderStudios: function (elem, item, context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue