Fix hours correctly

This commit is contained in:
dave 2014-08-29 08:41:19 -07:00
parent d5c3cb886d
commit 8ca315b65f
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ var behaviors = {
// Update the slider
$(".time-holder .player-slider").slider('setValue', event.jPlayer.status.currentTime);
// And update the time
newTime = event.jPlayer.status.currentTime;
hours = Math.floor(newTime/60/60)
minutes = Math.floor(newTime/60)
seconds = Math.floor(newTime-(minutes*60))