Update time while dragging

This commit is contained in:
dave 2014-08-28 23:22:43 -07:00
parent 1e6af559a6
commit bbe9987239
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,6 @@ var behaviors = {
// Add a class to the slider on hover // Add a class to the slider on hover
$(this).addClass("dragging") $(this).addClass("dragging")
}).on("slideStop", function(){ }).on("slideStop", function(){
$(this).removeClass("dragging"); $(this).removeClass("dragging");
}).on("slide", function(){ }).on("slide", function(){
paused = $("#player").data().jPlayer.status.paused paused = $("#player").data().jPlayer.status.paused
@ -167,6 +166,9 @@ var behaviors = {
} else { } else {
$("#player").jPlayer("play", parseInt(newTime)) $("#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() { play:function() {