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:
parent
ac0cc84f9d
commit
5046f6e987
8 changed files with 48 additions and 10 deletions
|
@ -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>';
|
||||
|
||||
html += '<a class="viewMenuLink viewMenuImageLink editorMenuLink" href="edititemmetadata.html" title="Metadata Manager"><img src="css/images/editor.png" alt=""Metadata Manager" /></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">';
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
});
|
||||
|
|
1
dashboard-ui/scripts/livetvtimer.js
Normal file
1
dashboard-ui/scripts/livetvtimer.js
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
@ -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 += ' ';
|
||||
html += '✓';
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue