mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 08:41:46 -05:00
20 lines
455 B
CoffeeScript
20 lines
455 B
CoffeeScript
|
CocoView = require 'views/core/CocoView'
|
||
|
|
||
|
module.exports = class NewItemView extends CocoView
|
||
|
id: 'new-item-view'
|
||
|
className: 'modal-content'
|
||
|
template: require('templates/play/level/modal/new-item-view')
|
||
|
|
||
|
events:
|
||
|
'click #continue-btn': 'onClickContinueButton'
|
||
|
|
||
|
afterRender: ->
|
||
|
super()
|
||
|
# TODO: Animate icon
|
||
|
|
||
|
initialize: (options) ->
|
||
|
@item = options.item
|
||
|
super()
|
||
|
|
||
|
onClickContinueButton: ->
|
||
|
@trigger 'continue'
|