mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
5b8d66cd1c
Don't show grey border around Anya in signup modal Refactor reload handling Fix courses page updating to chosen hero
24 lines
758 B
CoffeeScript
24 lines
758 B
CoffeeScript
ModalView = require 'views/core/ModalView'
|
|
HeroSelectView = require 'views/core/HeroSelectView'
|
|
template = require 'templates/courses/hero-select-modal'
|
|
Classroom = require 'models/Classroom'
|
|
ThangTypes = require 'collections/ThangTypes'
|
|
State = require 'models/State'
|
|
ThangType = require 'models/ThangType'
|
|
User = require 'models/User'
|
|
|
|
module.exports = class HeroSelectModal extends ModalView
|
|
id: 'hero-select-modal'
|
|
template: template
|
|
retainSubviews: true
|
|
|
|
events:
|
|
'click .select-hero-btn': 'onClickSelectHeroButton'
|
|
|
|
initialize: ->
|
|
@listenTo @insertSubView(new HeroSelectView({ showCurrentHero: true })),
|
|
'hero-select:success', (hero) ->
|
|
@trigger('hero-select:success', hero)
|
|
|
|
onClickSelectHeroButton: () ->
|
|
@hide()
|