Fix the overlapping of youtube embedded videos
This commit is contained in:
parent
6689f20710
commit
81ebd05d6a
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ app.views.OEmbed = app.views.Base.extend({
|
||||||
if( $(evt.target).is('a') ) return;
|
if( $(evt.target).is('a') ) return;
|
||||||
var insertHTML = $(app.helpers.oEmbed.html(this.model.get("o_embed_cache")));
|
var insertHTML = $(app.helpers.oEmbed.html(this.model.get("o_embed_cache")));
|
||||||
var paramSeparator = ( /\?/.test(insertHTML.attr("src")) ) ? "&" : "?";
|
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);
|
this.$el.html(insertHTML);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue