mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
19 lines
417 B
CoffeeScript
19 lines
417 B
CoffeeScript
|
CocoView = require 'views/core/CocoView'
|
||
|
|
||
|
module.exports = class CampaignLevelView extends CocoView
|
||
|
id: 'campaign-level-view'
|
||
|
template: require 'templates/editor/campaign/campaign-level-view'
|
||
|
|
||
|
events:
|
||
|
'click .close': 'onClickClose'
|
||
|
|
||
|
constructor: (options, @level) ->
|
||
|
super(options)
|
||
|
|
||
|
getRenderData: ->
|
||
|
c = super()
|
||
|
c.level = @level
|
||
|
c
|
||
|
|
||
|
onClickClose: ->
|
||
|
@$el.addClass('hidden')
|