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

@ -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);