From afde79da334ccdd24510549c911b69745b13a5ad Mon Sep 17 00:00:00 2001 From: Prem Sichanugrist Date: Wed, 9 May 2012 18:25:16 -0400 Subject: [PATCH] Fix the broken caption select --- templates/coffee/src/modules/video/video_caption.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/coffee/src/modules/video/video_caption.coffee b/templates/coffee/src/modules/video/video_caption.coffee index fd6ade363f..9115274222 100644 --- a/templates/coffee/src/modules/video/video_caption.coffee +++ b/templates/coffee/src/modules/video/video_caption.coffee @@ -15,7 +15,6 @@ class VideoCaption @$('.subtitles').mouseenter(@onMouseEnter).mouseleave(@onMouseLeave) .mousemove(@onMovement).bind('mousewheel', @onMovement) .bind('DOMMouseScroll', @onMovement) - @$('.subtitles li[data-index]').click @seekPlayer captionURL: -> "/static/subs/#{@youtubeId}.srt.sjson" @@ -39,6 +38,7 @@ class VideoCaption 'data-start': @start[index] @$('.subtitles').html(container.html()) + @$('.subtitles li[data-index]').click @seekPlayer # prepend and append an empty
  • for cosmatic reason @$('.subtitles').prepend($('
  • ').height(@topSpacingHeight()))