codecombat/app/views/user/JobProfileCodeModal.coffee
Imperadeiro98 8e8a3103d5 Refactor to use view in template for issue #3138
This removes getRenderData from: CareersView, SaveCampaignModal,
InfiniteLoopModal, SpellListEntryThangsView, SaveLoadView,
PlaySettingsModal and JobProfileCodeModal.
2015-11-09 21:29:27 +00:00

18 lines
567 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
afterRender: ->
super()
codeView = new LevelSessionCodeView({session:@session})
@insertSubView(codeView, @$el.find('.level-session-code-view'))