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
8225003fd5
commit
7b625ade86
9 changed files with 231 additions and 278 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define(['datetime', 'jQuery'], function (datetime, $) {
|
||||
|
||||
var currentPlayer;
|
||||
|
||||
|
@ -247,7 +247,7 @@
|
|||
ticks /= 100;
|
||||
ticks *= value;
|
||||
|
||||
this.pinValue = Dashboard.getDisplayTime(ticks);
|
||||
this.pinValue = datetime.getDisplayRunningTime(ticks);
|
||||
};
|
||||
}, 300);
|
||||
}
|
||||
|
@ -375,11 +375,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
var timeText = Dashboard.getDisplayTime(playState.PositionTicks);
|
||||
var timeText = datetime.getDisplayRunningTime(playState.PositionTicks);
|
||||
|
||||
if (nowPlayingItem.RunTimeTicks) {
|
||||
|
||||
timeText += " / " + Dashboard.getDisplayTime(nowPlayingItem.RunTimeTicks);
|
||||
timeText += " / " + datetime.getDisplayRunningTime(nowPlayingItem.RunTimeTicks);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue