diff --git a/Changelog.md b/Changelog.md index eb4431553..3222f5af9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -39,6 +39,7 @@ * Problems with layout the registration page for mobile. [#4396](https://github.com/diaspora/diaspora/issues/4396) * Do not display photos in the background in the SPV [#4407](https://github.com/diaspora/diaspora/pull/4407) * Fix mobile view of deleted reshares [#4397](https://github.com/diaspora/diaspora/issues/4397) +* Fix the overlapping of embedded youtube videos [#2943](https://github.com/diaspora/diaspora/issues/2943) ## Features * Admin: add option to find users under 13 (COPPA) [#4252](https://github.com/diaspora/diaspora/pull/4252) 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); } });