mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add more live tv buttons
This commit is contained in:
parent
4094adb5a7
commit
f491228119
114 changed files with 1076 additions and 310 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
var pageSizeKey = 'pagesize_v4';
|
||||
|
||||
return {
|
||||
var libraryBrowser = {
|
||||
getDefaultPageSize: function (key, defaultValue) {
|
||||
|
||||
var saved = appStorage.getItem(key || pageSizeKey);
|
||||
|
@ -205,8 +205,6 @@
|
|||
|
||||
if (LibraryBrowser.enableFullPaperTabs()) {
|
||||
|
||||
$(tabs).show();
|
||||
|
||||
if ($.browser.safari) {
|
||||
|
||||
// Not very iOS-like I suppose
|
||||
|
@ -226,8 +224,7 @@
|
|||
tabs.noBar = true;
|
||||
tabs.scrollable = true;
|
||||
|
||||
var legacyTabs = $('.legacyTabs', ownerpage).show();
|
||||
document.body.classList.add('basicPaperLibraryTabs');
|
||||
var legacyTabs = $('.legacyTabs', ownerpage);
|
||||
|
||||
$(pages).on('iron-select', function (e) {
|
||||
|
||||
|
@ -242,6 +239,7 @@
|
|||
|
||||
$(pages).on('iron-select', function () {
|
||||
|
||||
console.log('iron-select');
|
||||
// When transition animations are used, add a content loading delay to allow the animations to finish
|
||||
// Otherwise with both operations happening at the same time, it can cause the animation to not run at full speed.
|
||||
var enablePaperTabs = LibraryBrowser.enableFullPaperTabs();
|
||||
|
@ -1258,6 +1256,11 @@
|
|||
itemCommands.push('sync');
|
||||
}
|
||||
|
||||
if (item.Type == 'Program' && (!item.TimerId && !item.SeriesTimerId)) {
|
||||
|
||||
itemCommands.push('record');
|
||||
}
|
||||
|
||||
return itemCommands;
|
||||
},
|
||||
|
||||
|
@ -3319,4 +3322,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
if (libraryBrowser.enableFullPaperTabs()) {
|
||||
document.documentElement.classList.add('fullPaperLibraryTabs');
|
||||
} else {
|
||||
document.documentElement.classList.add('basicPaperLibraryTabs');
|
||||
}
|
||||
|
||||
return libraryBrowser;
|
||||
|
||||
})(window, document, jQuery, screen);
|
Loading…
Add table
Add a link
Reference in a new issue