From 3356a55fbd33285096ad9876ff768c36356792bf Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 16 Sep 2015 20:20:51 -0700 Subject: [PATCH] Fix modal issue --- player/embed.coffee | 1 + www/js/player.js | 3 ++- www/js/util.js | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/player/embed.coffee b/player/embed.coffee index b42d965a..85c85dbc 100644 --- a/player/embed.coffee +++ b/player/embed.coffee @@ -37,6 +37,7 @@ window.EmbedPlayer = class EmbedPlayer extends Player object = $('').attr( type: 'application/x-shockwave-flash' data: embed.src + wmode: 'opaque' ) genParam('allowfullscreen', 'true').appendTo(object) genParam('allowscriptaccess', 'always').appendTo(object) diff --git a/www/js/player.js b/www/js/player.js index f23f97ce..e7efe95b 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -851,7 +851,8 @@ var key, object, ref, value; 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); diff --git a/www/js/util.js b/www/js/util.js index fd13a2e7..38994699 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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) {