Fixed issue with video on multiplayer page modal

This commit is contained in:
Aditya Raisinghani 2014-03-17 19:52:03 +05:30
parent 1171572bd8
commit b5bef94eb3
2 changed files with 9 additions and 1 deletions

View file

@ -7,7 +7,7 @@ block modal-header-content
block modal-body-content
.multiplayer-launch-wrapper
<iframe width="640" height="360" src="//www.youtube.com/embed/wfc0U74LFCk?rel=0&controls=0&modestbranding=1&showinfo=0&iv_load_policy=3&vq=hd720" frameborder="0" allowfullscreen></iframe>
<iframe id="multiplayer-video" width="640" height="360" src="//www.youtube.com/embed/wfc0U74LFCk?&rel=0&controls=0&modestbranding=1&showinfo=0&iv_load_policy=3&vq=hd720" frameborder="0" allowfullscreen></iframe>
img(src="/images/pages/home/video_border.png")
h3(data-i18n="multiplayer_launch.to_battle") To Battle, Developers!

View file

@ -10,3 +10,11 @@ module.exports = class MultiplayerLaunchView extends HomeView
class MultiplayerLaunchModal extends ModalView
template: modalTemplate
id: "multiplayer-launch-modal"
hide: ->
$('#multiplayer-video').attr('src','')
super()
onHidden: ->
$('#multiplayer-video').attr('src','')
super()