Fix modal issue

This commit is contained in:
calzoneman 2015-09-16 20:20:51 -07:00
parent c81ae989fd
commit 3356a55fbd
3 changed files with 9 additions and 2 deletions

View file

@ -37,6 +37,7 @@ window.EmbedPlayer = class EmbedPlayer extends Player
object = $('<object/>').attr( object = $('<object/>').attr(
type: 'application/x-shockwave-flash' type: 'application/x-shockwave-flash'
data: embed.src data: embed.src
wmode: 'opaque'
) )
genParam('allowfullscreen', 'true').appendTo(object) genParam('allowfullscreen', 'true').appendTo(object)
genParam('allowscriptaccess', 'always').appendTo(object) genParam('allowscriptaccess', 'always').appendTo(object)

View file

@ -851,7 +851,8 @@
var key, object, ref, value; var key, object, ref, value;
object = $('<object/>').attr({ object = $('<object/>').attr({
type: 'application/x-shockwave-flash', type: 'application/x-shockwave-flash',
data: embed.src data: embed.src,
wmode: 'opaque'
}); });
genParam('allowfullscreen', 'true').appendTo(object); genParam('allowfullscreen', 'true').appendTo(object);
genParam('allowscriptaccess', 'always').appendTo(object); genParam('allowscriptaccess', 'always').appendTo(object);

View file

@ -1910,13 +1910,18 @@ function waitUntilDefined(obj, key, fn) {
} }
function hidePlayer() { function hidePlayer() {
/* 2015-09-16
* Originally used to hide the player while a modal was open because of
* certain flash videos that always rendered on top. Seems to no longer
* be an issue. Uncomment this if it is.
if (!PLAYER) return; if (!PLAYER) return;
$("#ytapiplayer").hide(); $("#ytapiplayer").hide();
*/
} }
function unhidePlayer() { function unhidePlayer() {
$("#ytapiplayer").show(); //$("#ytapiplayer").show();
} }
function chatDialog(div) { function chatDialog(div) {