From bbe9987239574c7b1341d8ae8fcf7993f9a4f1e8 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 28 Aug 2014 23:22:43 -0700 Subject: [PATCH] Update time while dragging --- static/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/app.js b/static/js/app.js index f4cba5e..345aefa 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -157,7 +157,6 @@ var behaviors = { // Add a class to the slider on hover $(this).addClass("dragging") }).on("slideStop", function(){ - $(this).removeClass("dragging"); }).on("slide", function(){ paused = $("#player").data().jPlayer.status.paused @@ -167,6 +166,9 @@ var behaviors = { } else { $("#player").jPlayer("play", parseInt(newTime)) } + minutes = Math.floor(newTime/60) + seconds = Math.floor(newTime-(minutes*60)) + $(".timeshow").html(minutes+":"+(seconds<10?"0":"")+seconds) }); }, play:function() {