mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-26 15:32:47 -05:00
20 lines
No EOL
455 B
CoffeeScript
20 lines
No EOL
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' |