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

added create live tv timer page

This commit is contained in:
Luke Pulverenti 2013-11-29 13:44:51 -05:00
parent ac0cc84f9d
commit 5046f6e987
8 changed files with 48 additions and 10 deletions

View file

@ -145,6 +145,10 @@
margin: 0 0 .5em;
}
.imageEditorCollapsible .ui-collapsible-content {
padding: 0 0 1em 0;
}
@media all and (min-width: 700px) {
.availableImagesList {

View file

@ -33,7 +33,7 @@
</div>
<div id="imagesContainer" style="display: none;">
<div data-role="collapsible" data-mini="true" data-collapsed="false" data-corners="false">
<div data-role="collapsible" data-mini="true" data-collapsed="false" data-corners="false" class="imageEditorCollapsible">
<h3>Images</h3>
<div id="images">
</div>
@ -41,7 +41,7 @@
</div>
<div id="backdropsContainer" style="display: none;">
<div data-role="collapsible" data-mini="true" data-collapsed="false" data-corners="false">
<div data-role="collapsible" data-mini="true" data-collapsed="false" data-corners="false" class="imageEditorCollapsible">
<h3>Backdrops</h3>
<div id="backdrops">
</div>
@ -49,7 +49,7 @@
</div>
<div id="screenshotsContainer" style="display: none;">
<div data-role="collapsible" data-mini="true" data-collapsed="false" data-corners="false">
<div data-role="collapsible" data-mini="true" data-collapsed="false" data-corners="false" class="imageEditorCollapsible">
<h3>Screenshots</h3>
<div id="screenshots">
</div>

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>Media Browser</title>
</head>
<body>
<div id="liveTvTimerPage" 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" class="ui-btn-active">Timers</a>
</div>
<div data-role="content">
</div>
</div>
</body>
</html>

View file

@ -12,6 +12,9 @@
<a href="livetvtimers.html" class="ui-btn-active">Timers</a>
</div>
<div data-role="content">
<p style="text-align: right; max-width: 1100px; margin: 1em auto 1.5em;">
<a data-role="button" href="livetvtimer.html" data-icon="plus" data-inline="true" data-mini="true">New Timer</a>
</p>
<div id="items" class="itemsContainer"></div>
</div>
</div>

View file

@ -2340,7 +2340,9 @@
html += '<a class="viewMenuLink viewMenuImageLink remoteControlMenuLink" href="#" onclick="RemoteControl.showMenu();" title="Remote Control"><img src="css/images/remote.png" alt="Remote Control" /></a>';
if (user.Configuration.IsAdministrator) {
html += '<a class="viewMenuLink viewMenuImageLink editorMenuLink" href="edititemmetadata.html" title="Metadata Manager"><img src="css/images/editor.png" alt=""Metadata Manager" /></a>';
}
html += '<div class="viewMenuSecondary">';

View file

@ -9,12 +9,12 @@
var imgUrl;
var isDefault;
if (channel.PrimaryImageTag) {
if (channel.ImageTags.Primary) {
imgUrl = apiClient.getUrl("LiveTV/Channels/" + channel.Id + "/Images/Primary", {
tag: channel.PrimaryImageTag,
tag: channel.ImageTags.Primary,
height: 300
});

View file

@ -0,0 +1 @@


View file

@ -6,7 +6,7 @@
function deleteTimer(page, id) {
Dashboard.confirm("Are you sure you wish to delete this timer?", "Confirm Timer Deletion", function (result) {
Dashboard.confirm("Are you sure you wish to cancel this timer?", "Confirm Timer Deletion", function (result) {
if (result) {
@ -40,7 +40,7 @@
html += '<th>Start</th>';
html += '<th>End</th>';
html += '<th>Status</th>';
html += '<th>Recurring Schedule</th>';
html += '<th>Recurring</th>';
html += '</tr>';
@ -51,7 +51,6 @@
html += '<tr>';
html += '<td>';
html += '<button data-timerid="' + timer.Id + '" class="btnEditTimer" type="button" data-icon="pencil" data-inline="true" data-mini="true" data-iconpos="notext">Edit</button>';
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>';
@ -76,7 +75,14 @@
html += '<td>' + (timer.Status || '') + '</td>';
html += '<td></td>';
html += '<td>';
if (timer.IsRecurring) {
html += '&nbsp;';
html += '&#10003;';
}
html += '</td>';
html += '</tr>';
}
@ -98,10 +104,14 @@
deleteTimer(page, id);
});
Dashboard.hideLoadingMsg();
}
function reload(page) {
Dashboard.showLoadingMsg();
apiClient.getLiveTvTimers().done(function (result) {
renderTimers(page, result.Items);