mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use jqm listview for series recordings
This commit is contained in:
parent
1f7bbddb34
commit
607b3482e1
15 changed files with 68 additions and 84 deletions
|
@ -5,7 +5,7 @@
|
|||
var tips = [
|
||||
'Did you know that editing the artist or album of a music video will allow it to appear on the artist and album pages?',
|
||||
'Did you know that editing the tmdb id, tvdb id, and/or games db id of an album will allow media browser to link it to a movie, series or game as a soundtrack?',
|
||||
'Did you know that you can re-order your media collections by editing their sort names?',
|
||||
'Did you know that you can re-order your media folders by editing their sort names?',
|
||||
'Did you know that series, seasons, games and boxsets can have local trailers?',
|
||||
'Did you know that movies can have special features by placing them in a "specials" sub-folder underneath the movie folder?',
|
||||
'Did you know that the trailer plugin can automatically download trailers for existing movies in your collection?'
|
||||
|
|
|
@ -222,11 +222,10 @@
|
|||
var link = links[i];
|
||||
|
||||
if (selectedIndex == i) {
|
||||
html += '<li class="selectedLibraryPanelLink">';
|
||||
html += '<li><a class="selectedLibraryPanelLink libraryPanelLink" href="' + link.href + '">' + link.text + '</a></li>';
|
||||
} else {
|
||||
html += '<li>';
|
||||
html += '<li><a class="libraryPanelLink" href="' + link.href + '">' + link.text + '</a></li>';
|
||||
}
|
||||
html += '<a href="' + link.href + '">' + link.text + '</a></li>';
|
||||
}
|
||||
|
||||
html += '</ul>';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<a class="squareTileItem tileItem" href="livetvchannel.html?id=' + channel.Id + '">';
|
||||
html += '<a class="backdropTileItem tileItem" href="livetvchannel.html?id=' + channel.Id + '">';
|
||||
|
||||
var imgUrl;
|
||||
var isDefault;
|
||||
|
|
|
@ -23,46 +23,21 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
var cssClass = "detailTable";
|
||||
html += '<ul data-role="listview" data-inset="true">';
|
||||
|
||||
html += '<div class="detailTableContainer"><table class="' + cssClass + '">';
|
||||
|
||||
html += '<tr>';
|
||||
|
||||
html += '<th class="tabletColumn"> </th>';
|
||||
html += '<th>Name</th>';
|
||||
html += '<th class="desktopColumn">Channel</th>';
|
||||
html += '<th>Days</th>';
|
||||
html += '<th>Time</th>';
|
||||
|
||||
html += '</tr>';
|
||||
html += '<li data-role="list-divider">Series Recordings</li>';
|
||||
|
||||
for (var i = 0, length = timers.length; i < length; i++) {
|
||||
|
||||
var timer = timers[i];
|
||||
|
||||
html += '<tr>';
|
||||
html += '<li><a href="livetvseriestimer.html?id=' + timer.Id + '">';
|
||||
|
||||
html += '<td class="tabletColumn">';
|
||||
html += '<button data-timerid="' + timer.Id + '" class="btnDeleteTimer" type="button" data-icon="delete" data-inline="true" data-mini="true" data-iconpos="notext">Delete</button>';
|
||||
html += '</td>';
|
||||
|
||||
html += '<td>';
|
||||
html += '<a href="livetvseriestimer.html?id=' + timer.Id + '">' + timer.Name + '</a>';
|
||||
html += '</td>';
|
||||
|
||||
html += '<td class="desktopColumn">';
|
||||
|
||||
if (timer.RecordAnyChannel) {
|
||||
html += 'All Channels';
|
||||
}
|
||||
else if (timer.ChannelId) {
|
||||
html += '<a href="livetvchannel.html?id=' + timer.ChannelId + '">' + timer.ChannelName + '</a>';
|
||||
}
|
||||
html += '</td>';
|
||||
|
||||
html += '<td>';
|
||||
html += '<h3>';
|
||||
html += timer.Name;
|
||||
html += '</h3>';
|
||||
|
||||
html += '<p>';
|
||||
if (timer.DayPattern) {
|
||||
html += timer.DayPattern;
|
||||
}
|
||||
|
@ -71,24 +46,30 @@
|
|||
|
||||
html += days.join(', ');
|
||||
}
|
||||
|
||||
if (timer.RecordAnyTime) {
|
||||
|
||||
html += '</td>';
|
||||
html += ' - Any time.';
|
||||
} else {
|
||||
html += ' - ' + LiveTvHelpers.getDisplayTime(timer.StartDate);
|
||||
}
|
||||
html += '</p>';
|
||||
|
||||
html += '<td>' + LiveTvHelpers.getDisplayTime(timer.StartDate) + '</td>';
|
||||
html += '<p>';
|
||||
if (timer.RecordAnyChannel) {
|
||||
html += 'All Channels';
|
||||
}
|
||||
else if (timer.ChannelId) {
|
||||
html += timer.ChannelName;
|
||||
}
|
||||
html += '</p>';
|
||||
|
||||
html += '</tr>';
|
||||
html += '</li>';
|
||||
}
|
||||
|
||||
html += '</table></div>';
|
||||
html += '</a></ul>';
|
||||
|
||||
var elem = $('#items', page).html(html).trigger('create');
|
||||
|
||||
$('.btnDeleteTimer', elem).on('click', function () {
|
||||
|
||||
var id = this.getAttribute('data-timerid');
|
||||
|
||||
deleteTimer(page, id);
|
||||
});
|
||||
$('#items', page).html(html).trigger('create');
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
|
|
@ -117,8 +117,8 @@
|
|||
changeCollectionType: function () {
|
||||
|
||||
Dashboard.alert({
|
||||
message: "To change the collection type, please remove and rebuild the collection with the new type.",
|
||||
title: "Change Collection Type"
|
||||
message: "To change the folder type, please remove and rebuild the collection with the new type.",
|
||||
title: "Change Folder Type"
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -137,7 +137,7 @@
|
|||
|
||||
typeName = typeName ? typeName.name : "General or mixed content";
|
||||
|
||||
html += '<p style="padding-left:.5em;">Collection type: <b>' + typeName + '</b></p>';
|
||||
html += '<p style="padding-left:.5em;">Folder type: <b>' + typeName + '</b></p>';
|
||||
|
||||
html += '<ul class="mediaFolderLocations" data-inset="true" data-role="listview" data-split-icon="minus">';
|
||||
|
||||
|
@ -189,7 +189,7 @@
|
|||
|
||||
$('.collectionTypeFieldDescription').show();
|
||||
|
||||
MediaLibraryPage.getTextValue("Add Media Collection", "Name (Movies, Music, TV, etc):", "", true, function (name, type) {
|
||||
MediaLibraryPage.getTextValue("Add Media Folder", "Name (Movies, Music, TV, etc):", "", true, function (name, type) {
|
||||
|
||||
var userId = MediaLibraryPage.getCurrentUserId($.mobile.activePage);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue