From 980c36e4771030ea6296ce0a1a31638f7c0b953e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 29 Sep 2020 14:44:36 +0000 Subject: [PATCH] wip #3909 @0.5 --- inc/ws/Controlleur/class.ws.ajax.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index 3a5620074..826894485 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -956,6 +956,7 @@ class wsAjax extends cubeAjax continue; } + $target = '_blank'; $inline = false; $video_service = ''; @@ -973,6 +974,7 @@ class wsAjax extends cubeAjax if ($item['asset_type'] === '3') { // link $type = 2; + $target = '_popupiframe'; $to = $item['asset_content']; $webvideo = new CubeIT_Filter_WebVideo(); $f = $webvideo->filter($to); @@ -997,7 +999,7 @@ class wsAjax extends cubeAjax $link = array( 'page' => $page, 'image' => $images[$type], 'left' => $item['x'] * $ratio, 'top' => $item['y'] * $ratio, 'width' => $item['width'] * $ratio, 'height' => $item['height'] * $ratio, 'rot' => '', - 'type' => $type, 'to' => $to, 'target' => '_blank', + 'type' => $type, 'to' => $to, 'target' => $target, 'video_width' => 1920, 'video_height' => 1080, 'infobulle' => '', 'numerotation' => 'virtual', 'display_area' => '1', 'inline' => $inline, 'video_service' => $video_service); $links[] = $link; -- 2.39.5