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
|
@ -295,11 +295,11 @@
|
|||
// Convert to ticks
|
||||
ticks = Math.floor(ticks);
|
||||
|
||||
var timeText = DashboardPage.getDisplayText(ticks);
|
||||
var timeText = Dashboard.getDisplayTime(ticks);
|
||||
|
||||
if (curentDurationTicks) {
|
||||
|
||||
timeText += " / " + DashboardPage.getDisplayText(curentDurationTicks);
|
||||
timeText += " / " + Dashboard.getDisplayTime(curentDurationTicks);
|
||||
|
||||
if (updateSlider) {
|
||||
var percent = ticks / curentDurationTicks;
|
||||
|
@ -1116,7 +1116,7 @@
|
|||
var name = chapter.Name || "Chapter " + (i + 1);
|
||||
|
||||
html += '<div class="mediaFlyoutOptionName">' + name + '</div>';
|
||||
html += '<div class="mediaFlyoutOptionSecondaryText">' + DashboardPage.getDisplayText(chapter.StartPositionTicks) + '</div>';
|
||||
html += '<div class="mediaFlyoutOptionSecondaryText">' + Dashboard.getDisplayTime(chapter.StartPositionTicks) + '</div>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue