Conflicts: common/lib/xmodule/xmodule/seq_module.py common/lib/xmodule/xmodule/template_module.py common/lib/xmodule/xmodule/x_module.py lms/djangoapps/courseware/tests/tests.py lms/djangoapps/courseware/views.py lms/static/sass/course.scss requirements.txt
24 lines
523 B
CoffeeScript
24 lines
523 B
CoffeeScript
class @Courseware
|
|
@prefix: ''
|
|
|
|
constructor: ->
|
|
Courseware.prefix = $("meta[name='path_prefix']").attr('content')
|
|
new Navigation
|
|
Logger.bind()
|
|
@render()
|
|
|
|
@start: ->
|
|
new Courseware
|
|
|
|
render: ->
|
|
XModule.loadModules()
|
|
$('.course-content .histogram').each ->
|
|
id = $(this).attr('id').replace(/histogram_/, '')
|
|
try
|
|
histg = new Histogram id, $(this).data('histogram')
|
|
catch error
|
|
histg = error
|
|
if console?
|
|
console.log(error)
|
|
return histg
|