1
0
Fork 0
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:
Luke Pulverenti 2016-05-05 23:09:36 -04:00
parent 8225003fd5
commit 7b625ade86
9 changed files with 231 additions and 278 deletions

View file

@ -1,4 +1,4 @@
define(['appSettings', 'jQuery', 'scrollStyles'], function (appSettings, $) {
define(['appSettings', 'datetime', 'jQuery', 'scrollStyles'], function (appSettings, datetime, $) {
function createVideoPlayer(self) {
@ -495,7 +495,7 @@
if (c.Name) {
chapterHtml += '<div class="cardText">' + c.Name + '</div>';
}
chapterHtml += '<div class="cardText">' + Dashboard.getDisplayTime(c.StartPositionTicks) + '</div>';
chapterHtml += '<div class="cardText">' + datetime.getDisplayRunningTime(c.StartPositionTicks) + '</div>';
chapterHtml += '</div>';
chapterHtml += '</div>';
@ -789,7 +789,7 @@
ticks /= 100;
ticks *= value;
this.pinValue = Dashboard.getDisplayTime(ticks);
this.pinValue = datetime.getDisplayRunningTime(ticks);
};
volumeSlider = $('.videoVolumeSlider', parent).on('change', function () {