Commit 9d6a3810 by Prem Sichanugrist

Fix the broken caption select

parent f9a79449
......@@ -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 <li> for cosmatic reason
@$('.subtitles').prepend($('<li class="spacing">').height(@topSpacingHeight()))
......
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