Files
edx-platform/lms/static/coffee/src/courseware.coffee
2013-10-18 16:31:32 -04:00

24 lines
547 B
CoffeeScript

class @Courseware
@prefix: ''
constructor: ->
Courseware.prefix = $("meta[name='path_prefix']").attr('content')
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