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(
type: 'application/x-shockwave-flash'
data: embed.src
wmode: 'opaque'
)
genParam('allowfullscreen', 'true').appendTo(object)
genParam('allowscriptaccess', 'always').appendTo(object)

View File

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

View File

@ -1910,13 +1910,18 @@ function waitUntilDefined(obj, key, fn) {
}
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;
$("#ytapiplayer").hide();
*/
}
function unhidePlayer() {
$("#ytapiplayer").show();
//$("#ytapiplayer").show();
}
function chatDialog(div) {