codecombat/app/views/MultiplayerView.coffee

21 lines
524 B
CoffeeScript
Raw Normal View History

HomeView = require './HomeView'
2014-03-16 20:33:57 -04:00
ModalView = require 'views/kinds/ModalView'
modalTemplate = require 'templates/multiplayer_launch_modal'
module.exports = class MultiplayerLaunchView extends HomeView
afterInsert: ->
super()
@openModalView(new MultiplayerLaunchModal())
2014-03-16 23:32:24 -04:00
2014-03-16 20:33:57 -04:00
class MultiplayerLaunchModal extends ModalView
2014-03-16 23:32:24 -04:00
template: modalTemplate
2014-06-30 22:16:26 -04:00
id: 'multiplayer-launch-modal'
hide: ->
$('#multiplayer-video').attr('src','')
super()
onHidden: ->
$('#multiplayer-video').attr('src','')
2014-06-30 22:16:26 -04:00
super()