Commit 9d6a3810 by Prem Sichanugrist

Fix the broken caption select

parent f9a79449
...@@ -15,7 +15,6 @@ class VideoCaption ...@@ -15,7 +15,6 @@ class VideoCaption
@$('.subtitles').mouseenter(@onMouseEnter).mouseleave(@onMouseLeave) @$('.subtitles').mouseenter(@onMouseEnter).mouseleave(@onMouseLeave)
.mousemove(@onMovement).bind('mousewheel', @onMovement) .mousemove(@onMovement).bind('mousewheel', @onMovement)
.bind('DOMMouseScroll', @onMovement) .bind('DOMMouseScroll', @onMovement)
@$('.subtitles li[data-index]').click @seekPlayer
captionURL: -> captionURL: ->
"/static/subs/#{@youtubeId}.srt.sjson" "/static/subs/#{@youtubeId}.srt.sjson"
...@@ -39,6 +38,7 @@ class VideoCaption ...@@ -39,6 +38,7 @@ class VideoCaption
'data-start': @start[index] 'data-start': @start[index]
@$('.subtitles').html(container.html()) @$('.subtitles').html(container.html())
@$('.subtitles li[data-index]').click @seekPlayer
# prepend and append an empty <li> for cosmatic reason # prepend and append an empty <li> for cosmatic reason
@$('.subtitles').prepend($('<li class="spacing">').height(@topSpacingHeight())) @$('.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