codecombat/app/views/multiplayer_view.coffee

21 lines
525 B
CoffeeScript
Raw Normal View History

2014-03-16 20:33:57 -04:00
HomeView = require './home_view'
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()