2014-07-18 20:06:20 -04:00
|
|
|
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'
|
2014-03-17 10:22:03 -04:00
|
|
|
|
|
|
|
hide: ->
|
|
|
|
$('#multiplayer-video').attr('src','')
|
|
|
|
super()
|
|
|
|
|
|
|
|
onHidden: ->
|
|
|
|
$('#multiplayer-video').attr('src','')
|
2014-06-30 22:16:26 -04:00
|
|
|
super()
|