mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
24 lines
No EOL
645 B
CoffeeScript
24 lines
No EOL
645 B
CoffeeScript
ModalView = require 'views/core/ModalView'
|
|
template = require 'templates/account/job-profile-code-modal'
|
|
LevelSessionCodeView = require 'views/common/LevelSessionCodeView'
|
|
|
|
module.exports = class JobProfileCodeModal extends ModalView
|
|
id: 'job-profile-code-modal'
|
|
template: template
|
|
modalWidthPercent: 90
|
|
plain: true
|
|
|
|
constructor: (options) ->
|
|
super(arguments...)
|
|
@session = options.session
|
|
|
|
getRenderData: ->
|
|
c = super()
|
|
c.session = @session
|
|
c
|
|
|
|
afterRender: ->
|
|
super()
|
|
codeView = new LevelSessionCodeView({session:@session})
|
|
@insertSubView(codeView, @$el.find('.level-session-code-view'))
|
|
|