mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update live tv cards
This commit is contained in:
parent
ad32dca3dd
commit
9a4988ecbb
5 changed files with 8 additions and 32 deletions
|
@ -120,7 +120,7 @@
|
|||
itemSelectionPanel = document.createElement('div');
|
||||
itemSelectionPanel.classList.add('itemSelectionPanel');
|
||||
|
||||
item.querySelector('.cardContent,.cardBox').appendChild(itemSelectionPanel);
|
||||
(item.querySelector('.cardBox') || item.querySelector('.cardContent')).appendChild(itemSelectionPanel);
|
||||
|
||||
var cssClass = 'chkItemSelect';
|
||||
if (isChecked && !browser.firefox) {
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
<div class="listTopPaging">
|
||||
</div>
|
||||
</div>
|
||||
<div id="items" class="itemsContainer" style="text-align:center;"></div>
|
||||
<div is="emby-itemscontainer" id="items" class="itemsContainer vertical-wrap centered"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,4 +1,4 @@
|
|||
define(['datetime'], function (datetime) {
|
||||
define(['datetime', 'cardBuilder'], function (datetime, cardBuilder) {
|
||||
|
||||
function enableScrollX() {
|
||||
return browserInfo.mobile && AppInfo.enableAppLayouts;
|
||||
|
@ -78,10 +78,10 @@
|
|||
if (enableScrollX()) {
|
||||
html += '<div is="emby-itemscontainer" class="itemsContainer hiddenScrollX">';
|
||||
} else {
|
||||
html += '<div is="emby-itemscontainer" class="itemsContainer">';
|
||||
html += '<div is="emby-itemscontainer" class="itemsContainer vertical-wrap">';
|
||||
}
|
||||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
html += cardBuilder.getCardsHtml({
|
||||
items: group.items,
|
||||
shape: getSquareShape(),
|
||||
showTitle: true,
|
||||
|
@ -89,7 +89,7 @@
|
|||
showChannelName: true,
|
||||
lazy: true,
|
||||
cardLayout: true,
|
||||
defaultAction: 'edit'
|
||||
action: 'edit'
|
||||
|
||||
});
|
||||
html += '</div>';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define(['jQuery', 'cardBuilder'], function ($, cardBuilder) {
|
||||
|
||||
// The base query options
|
||||
var query = {
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
var screenWidth = window.innerWidth;
|
||||
|
||||
html += LibraryBrowser.getPosterViewHtml({
|
||||
html += cardBuilder.getCardsHtml({
|
||||
|
||||
items: result.Items,
|
||||
shape: "auto",
|
||||
|
|
|
@ -129,19 +129,6 @@
|
|||
|
||||
}
|
||||
|
||||
function renderRecordings(page, result) {
|
||||
|
||||
$('.recordingsTab', page).html(LibraryBrowser.getPosterViewHtml({
|
||||
|
||||
items: result.Items,
|
||||
shape: "detailPageSquare",
|
||||
showTitle: true,
|
||||
centerText: true,
|
||||
coverImage: true
|
||||
|
||||
}));
|
||||
}
|
||||
|
||||
function renderSchedule(page, result) {
|
||||
|
||||
var timers = result.Items;
|
||||
|
@ -172,17 +159,6 @@
|
|||
|
||||
});
|
||||
|
||||
ApiClient.getLiveTvRecordings({
|
||||
|
||||
userId: Dashboard.getCurrentUserId(),
|
||||
seriesTimerId: id
|
||||
|
||||
}).then(function (recordingResult) {
|
||||
|
||||
renderRecordings(page, recordingResult);
|
||||
|
||||
});
|
||||
|
||||
ApiClient.getLiveTvTimers({
|
||||
|
||||
seriesTimerId: id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue