Make sure video is working in sequence module

This commit is contained in:
Prem Sichanugrist
2012-05-09 18:22:33 -04:00
parent b0149541a3
commit 823843cd2f
4 changed files with 22 additions and 9 deletions

View File

@@ -4,12 +4,17 @@ class window.Courseware
new Calculator
new FeedbackForm
Logger.bind()
@renderModules()
@bind()
@render()
@start: ->
new Courseware
renderModules: ->
bind: ->
if $('#seq_content').length
$('#seq_content').change @render
render: ->
$('.course-content .video').each ->
id = $(this).attr('id').replace(/video_/, '')
new Video id, $(this).data('streams')