diff --git a/static/js/app.js b/static/js/app.js index fbd3b4d..080dfef 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -157,9 +157,11 @@ var behaviors = { // Add a class to the slider on hover $(this).addClass("dragging") }).on("slideStop", function(){ + + $(this).removeClass("dragging"); + }).on("slide", function(){ newTime = $(".time-holder .player-slider").slider('getValue').val(); $("#player").jPlayer("play", parseInt(newTime)) - $(this).removeClass("dragging"); }); }, play:function() {