mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
consolidate datetime methods
This commit is contained in:
parent
69ae494554
commit
8225003fd5
9 changed files with 29 additions and 70 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define(['datetime'], function (datetime) {
|
||||
|
||||
function renderPrograms(page, result) {
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
}
|
||||
|
||||
html += '<div class="' + cssClass + '">';
|
||||
html += '<div class="tvProgramTimeSlotInner">' + LibraryBrowser.getDisplayTime(startDate) + '</div>';
|
||||
html += '<div class="tvProgramTimeSlotInner">' + datetime.getDisplayTime(startDate) + '</div>';
|
||||
html += '</div>';
|
||||
|
||||
cssClass = "tvProgramInfo";
|
||||
|
@ -96,7 +96,7 @@
|
|||
html += '</a>';
|
||||
}
|
||||
|
||||
$('#childrenContent', page).html(html);
|
||||
page.querySelector('#childrenContent').innerHTML = html;
|
||||
}
|
||||
|
||||
function loadPrograms(page, channelId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue