1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

updated nuget + live tv

This commit is contained in:
Luke Pulverenti 2013-12-14 10:49:11 -05:00
parent 07241dc539
commit fadec6653a
14 changed files with 109 additions and 27 deletions

View file

@ -37,7 +37,7 @@
</div>
<div style="display: inline-block; vertical-align: bottom;">
<div class="fldRefresh" style="display: none;">
<button id="btnRefresh" type="button" data-icon="refresh" data-mini="true" data-inline="true">Full Metadata Refresh</button>
<button id="btnRefresh" type="button" data-icon="refresh" data-mini="true" data-inline="true">Refresh Metadata</button>
</div>
</div>
<div style="display: inline-block; vertical-align: bottom;">
@ -48,7 +48,7 @@
</div>
<div style="vertical-align: bottom; display: inline-block;">
<div id="fldDelete" style="display: none;">
<button id="btnDelete" type="button" data-icon="delete" data-mini="true" data-inline="true">Delete Item</button>
<button id="btnDelete" type="button" data-icon="delete" data-mini="true" data-inline="true">Delete</button>
</div>
</div>
</div>

View file

@ -9,7 +9,8 @@
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html" class="ui-btn-active">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html">Timers</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div id="itemBackdrop" class="itemBackdrop noBackdrop">
<div class="itemBackdropContent">

View file

@ -9,7 +9,8 @@
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html" class="ui-btn-active">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html">Timers</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div data-role="content">
<div class="viewSettings">

View file

@ -9,7 +9,8 @@
<a href="livetvguide.html" class="ui-btn-active">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html">Timers</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div data-role="content">
</div>

View file

@ -9,7 +9,8 @@
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html" class="ui-btn-active">Recordings</a>
<a href="livetvtimers.html">Timers</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div id="itemBackdrop" class="itemBackdrop noBackdrop">
<div class="itemBackdropContent">

View file

@ -9,7 +9,8 @@
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html" class="ui-btn-active">Recordings</a>
<a href="livetvtimers.html">Timers</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div data-role="content">
<div class="itemsContainer">

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Media Browser</title>
</head>
<body>
<div id="liveTvSeriesTimerPage" data-role="page" class="page libraryPage" data-theme="a" data-view="livetv">
<div class="libraryViewNav">
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html" class="ui-btn-active">Series Timers</a>
</div>
<div data-role="content">
<br />
<div id="items" class="itemsContainer"></div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Media Browser</title>
</head>
<body>
<div id="liveTvSeriesTimersPage" data-role="page" class="page libraryPage" data-theme="a" data-view="livetv">
<div class="libraryViewNav">
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html">Upcoming Timers</a>
<a href="livetvseriestimers.html" class="ui-btn-active">Series Timers</a>
</div>
<div data-role="content">
<br />
<div id="items" class="itemsContainer"></div>
</div>
</div>
</body>
</html>

View file

@ -9,16 +9,22 @@
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html" class="ui-btn-active">Timers</a>
<a href="livetvtimers.html" class="ui-btn-active">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div data-role="content">
<form style="margin: 0 auto;">
<h1>Timer Info</h1>
<p><span class="itemName inlineItemName program"></span><span class="itemMiscInfo" style="display: inline;"></span></p>
<p class="program"></p>
<p class="channel"></p>
<p class="overview"></p>
<p style="margin-top: 2em;">
<span class="status"></span>
<a id="btnCancelTimer" href="#" style="margin-left: 2em;">Cancel Timer</a>
<span class="seriesTimerLink" style="margin-left: 2em;"></span>
</p>
<br />
<br />

View file

@ -9,7 +9,8 @@
<a href="livetvguide.html">Guide</a>
<a href="livetvchannels.html">Channels</a>
<a href="livetvrecordings.html">Recordings</a>
<a href="livetvtimers.html" class="ui-btn-active">Timers</a>
<a href="livetvtimers.html" class="ui-btn-active">Upcoming Timers</a>
<a href="livetvseriestimers.html">Series Timers</a>
</div>
<div data-role="content">
<br />

View file

@ -0,0 +1 @@


View file

@ -0,0 +1 @@


View file

@ -2,6 +2,25 @@
var currentItem;
function deleteTimer(page, id) {
Dashboard.confirm("Are you sure you wish to cancel this timer?", "Confirm Timer Cancellation", function (result) {
if (result) {
Dashboard.showLoadingMsg();
ApiClient.cancelLiveTvTimer(id).done(function () {
Dashboard.alert('Timer deleted');
reload(page);
});
}
});
}
function renderTimer(page, item) {
currentItem = item;
@ -15,6 +34,17 @@
$('#txtRequiredPrePaddingSeconds', page).val(item.RequiredPrePaddingSeconds);
$('#txtRequiredPostPaddingSeconds', page).val(item.RequiredPostPaddingSeconds);
$('.itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(item));
$('.status', page).html('Status:&nbsp;&nbsp;&nbsp;' + item.Status);
if (item.SeriesTimerId) {
$('.seriesTimerLink', page).html('<a href="livetvseriestimer.html?id=' + item.SeriesTimerId + '">View Series</a>').show().trigger('create');
} else {
$('.seriesTimerLink', page).hide();
}
Dashboard.hideLoadingMsg();
}
@ -35,6 +65,12 @@
var page = this;
$('#btnCancelTimer', page).on('click', function () {
deleteTimer(page, currentItem.Id);
});
}).on('pagebeforeshow', "#liveTvTimerPage", function () {
var page = this;

View file

@ -1,9 +1,5 @@
(function ($, document, apiClient) {
function editTimer(page, id) {
}
function deleteTimer(page, id) {
Dashboard.confirm("Are you sure you wish to cancel this timer?", "Confirm Timer Cancellation", function (result) {
@ -40,7 +36,7 @@
html += '<th>Start</th>';
html += '<th class="tabletColumn">Length</th>';
html += '<th class="tabletColumn">Status</th>';
html += '<th class="desktopColumn">Recurring</th>';
html += '<th class="desktopColumn">Series</th>';
html += '</tr>';
@ -86,9 +82,10 @@
html += '<td class="desktopColumn">';
if (timer.IsRecurring) {
html += '&nbsp;';
html += '&#10003;';
if (timer.SeriesTimerId) {
html += '<a href="livetvseriestimer.html?id=' + timer.SeriesTimerId + '">';
html += 'View';
html += '</a>';
}
html += '</td>';
@ -100,13 +97,6 @@
var elem = $('#items', page).html(html).trigger('create');
$('.btnEditTimer', elem).on('click', function () {
var id = this.getAttribute('data-timerid');
editTimer(page, id);
});
$('.btnDeleteTimer', elem).on('click', function () {
var id = this.getAttribute('data-timerid');