From 34b708bace56048dc105634c4b4c3c25dfd215ff Mon Sep 17 00:00:00 2001 From: digital-gnome <31593470+digital-gnome@users.noreply.github.com> Date: Tue, 5 Dec 2017 09:39:18 -0500 Subject: [PATCH] Handle popups that should remain popups --- web/skins/classic/js/skin.js | 2 +- web/skins/classic/views/event.php | 4 ++-- web/skins/classic/views/js/watch.js | 4 ++-- web/skins/classic/views/watch.php | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/web/skins/classic/js/skin.js b/web/skins/classic/js/skin.js index 97041bd65..e9d03481b 100644 --- a/web/skins/classic/js/skin.js +++ b/web/skins/classic/js/skin.js @@ -109,7 +109,7 @@ function createPopup( url, name, tag, width, height ) { popupDimensions += ",width="+popupSize.width; if ( popupSize.height > 0 ) popupDimensions += ",height="+popupSize.height; - var popup = window.open( url, name, popupOptions+popupDimensions ); + var popup = window.open( url+"&popup=1", name, popupOptions+popupDimensions ); if ( ! popup ) { // if popup blocking is enabled, the popup won't be defined. console.log("Please disable popup blocking."); diff --git a/web/skins/classic/views/event.php b/web/skins/classic/views/event.php index c87ed6178..370686ad2 100644 --- a/web/skins/classic/views/event.php +++ b/web/skins/classic/views/event.php @@ -96,7 +96,7 @@ xhtmlHeaders(__FILE__, translate('Event') ); ?>