Co-Authored-By: Jean-Michel Claus <jmc@edx.org> Co-Authored-By: Brian Talbot <btalbot@edx.org> Co-Authored-By: Tim Babych <tim@edx.org> Co-Authored-By: Oleg Marshev <oleg@edx.org> Co-Authored-By: Chris Rodriguez <crodriguez@edx.org>
23 lines
477 B
CoffeeScript
23 lines
477 B
CoffeeScript
class @Courseware
|
|
@prefix: ''
|
|
|
|
constructor: ->
|
|
new Navigation
|
|
Logger.bind()
|
|
@render()
|
|
|
|
@start: ->
|
|
new Courseware
|
|
|
|
render: ->
|
|
XBlock.initializeBlocks($('.course-content'))
|
|
$('.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
|