Merge pull request #4358 from arlogn/2943-fix-embedded-media-over-elements
Fix the overlapping of youtube embedded videos
This commit is contained in:
commit
caae0d6af6
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue