Fix the overlapping of youtube embedded videos

This commit is contained in:
arlogn 2013-08-06 20:34:46 +02:00
parent 6689f20710
commit 81ebd05d6a

View file

@ -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);
} }
}); });