From 74223ddd4d747c5d39fa8d2f78960970f7ed9fea Mon Sep 17 00:00:00 2001 From: FayCross Date: Fri, 2 Jul 2021 14:55:16 +0100 Subject: [PATCH] Fix bug that was preventing 360 image pages being displayed in a lightbox --- .../Nottingham/models_html5/media360.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/xerte/parent_templates/Nottingham/models_html5/media360.html b/modules/xerte/parent_templates/Nottingham/models_html5/media360.html index 370b3695f8..ecff9396de 100644 --- a/modules/xerte/parent_templates/Nottingham/models_html5/media360.html +++ b/modules/xerte/parent_templates/Nottingham/models_html5/media360.html @@ -60,8 +60,8 @@ // if this has been triggered from window.resize() called manually for video sizing then skip all this if (videoResize == true) { - if (parent.window.$.featherlight.current()) { - parent.window.$.featherlight.current().close(); + if (window.$.featherlight.current() != null) { + window.$.featherlight.current().close(); } var $panel = $("#pageContents .panel"); @@ -856,7 +856,9 @@ for (var i=0; i