mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
cleanup helper functions
This commit is contained in:
parent
356217a9b6
commit
4cdfe410b2
9 changed files with 56 additions and 1034 deletions
|
@ -375,7 +375,7 @@
|
|||
|
||||
html += '</td>';
|
||||
|
||||
html += '<td>' + name + '<br/>' + DashboardPage.getDisplayText(chapter.StartPositionTicks) + '</td>';
|
||||
html += '<td>' + name + '<br/>' + Dashboard.getDisplayTime(chapter.StartPositionTicks) + '</td>';
|
||||
|
||||
html += '</tr>';
|
||||
}
|
||||
|
@ -524,12 +524,12 @@
|
|||
|
||||
if (session.NowPlayingItem) {
|
||||
|
||||
html += DashboardPage.getDisplayText(session.NowPlayingPositionTicks || 0);
|
||||
html += Dashboard.getDisplayTime(session.NowPlayingPositionTicks || 0);
|
||||
|
||||
if (session.NowPlayingItem.RunTimeTicks) {
|
||||
|
||||
html += " / ";
|
||||
html += DashboardPage.getDisplayText(session.NowPlayingItem.RunTimeTicks);
|
||||
html += Dashboard.getDisplayTime(session.NowPlayingItem.RunTimeTicks);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -592,7 +592,7 @@
|
|||
html += '<td>' + video.Name;
|
||||
|
||||
if (video.RunTimeTicks) {
|
||||
html += '<br/>' + DashboardPage.getDisplayText(video.RunTimeTicks);
|
||||
html += '<br/>' + Dashboard.getDisplayTime(video.RunTimeTicks);
|
||||
}
|
||||
|
||||
html += '</td>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue