Files
edx-platform/lms/static/coffee/src/courseware.coffee
polesye c7153be040 TNL-213: Let Students Add Personal Notes to Course Content.
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>
2015-01-14 23:34:11 +02:00

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