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(['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);
}