From 81ebd05d6a160a4f7ad4b2b13d8265e84d648d36 Mon Sep 17 00:00:00 2001 From: arlogn Date: Tue, 6 Aug 2013 20:34:46 +0200 Subject: [PATCH] Fix the overlapping of youtube embedded videos --- app/assets/javascripts/app/views/content_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/views/content_view.js b/app/assets/javascripts/app/views/content_view.js index b175aae1c..68501ad8b 100644 --- a/app/assets/javascripts/app/views/content_view.js +++ b/app/assets/javascripts/app/views/content_view.js @@ -102,7 +102,7 @@ app.views.OEmbed = app.views.Base.extend({ if( $(evt.target).is('a') ) return; var insertHTML = $(app.helpers.oEmbed.html(this.model.get("o_embed_cache"))); var paramSeparator = ( /\?/.test(insertHTML.attr("src")) ) ? "&" : "?"; - insertHTML.attr("src", insertHTML.attr("src") + paramSeparator + "autoplay=1"); + insertHTML.attr("src", insertHTML.attr("src") + paramSeparator + "autoplay=1&wmode=opaque"); this.$el.html(insertHTML); } });