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
|
|
|
|
id: "multiplayer-launch-modal"
|
2014-03-17 10:22:03 -04:00
|
|
|
|
|
|
|
hide: ->
|
|
|
|
$('#multiplayer-video').attr('src','')
|
|
|
|
super()
|
|
|
|
|
|
|
|
onHidden: ->
|
|
|
|
$('#multiplayer-video').attr('src','')
|
|
|
|
super()
|