From b8da17855fe71514bb376d8aebbfb9b752c456ab Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 28 Aug 2014 22:51:08 -0700 Subject: [PATCH] Change time rounding --- static/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 112cefa..dc14c32 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -163,8 +163,8 @@ var behaviors = { }, timeupdate:function(event) { $(".time-holder .player-slider").slider('setValue', event.jPlayer.status.currentTime); - minutes = parseInt(event.jPlayer.status.currentTime/60) - seconds = parseInt(event.jPlayer.status.currentTime-(minutes*60)) + minutes = Math.floor(event.jPlayer.status.currentTime/60) + seconds = Math.floor(event.jPlayer.status.currentTime-(minutes*60)) $(".timeshow").html(minutes+":"+(seconds<10?"0":"")+seconds)