Commit 9d1a2a5c by Ernie Park

add active class to 1.0 speed video when page first loaded.

--HG--
branch : kf-highlight-speed
parent b29ea7d3
...@@ -35,7 +35,13 @@ loadNewVideo(streams["1.0"], ${ position }); ...@@ -35,7 +35,13 @@ loadNewVideo(streams["1.0"], ${ position });
function add_speed(key, stream) { function add_speed(key, stream) {
var id = 'speed_' + stream; var id = 'speed_' + stream;
$("#video_speeds").append(' <li id="'+id+'">'+key+'x</li>'); //TODO: this should be smarter and know which video is first selected when we have
// video speed as an option/parameter per user that is saved
if (key == 1.0) {
$("#video_speeds").append(' <li class=active id="'+id+'">'+key+'x</li>');
} else {
$("#video_speeds").append(' <li id="'+id+'">'+key+'x</li>');
}
$("#"+id).click(function(){ $("#"+id).click(function(){
change_video_speed(key, stream); change_video_speed(key, stream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment