codecombat/app/views/play/level/modal/ProgressView.coffee
2016-04-27 09:58:04 -07:00

24 lines
No EOL
617 B
CoffeeScript

CocoView = require 'views/core/CocoView'
module.exports = class ProgressView extends CocoView
id: 'progress-view'
className: 'modal-content'
template: require 'templates/play/level/modal/progress-view'
events:
'click #done-btn': 'onClickDoneButton'
'click #next-level-btn': 'onClickNextLevelButton'
initialize: (options) ->
@level = options.level
@course = options.course
@classroom = options.classroom
@nextLevel = options.nextLevel
@levelSessions = options.levelSessions
onClickDoneButton: ->
@trigger 'done'
onClickNextLevelButton: ->
@trigger 'next-level'