mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 00:31:21 -05:00
20 lines
525 B
CoffeeScript
20 lines
525 B
CoffeeScript
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())
|
|
|
|
class MultiplayerLaunchModal extends ModalView
|
|
template: modalTemplate
|
|
id: 'multiplayer-launch-modal'
|
|
|
|
hide: ->
|
|
$('#multiplayer-video').attr('src','')
|
|
super()
|
|
|
|
onHidden: ->
|
|
$('#multiplayer-video').attr('src','')
|
|
super()
|