From a28aef4050f745b2639d773b739b1f5b83a2f76d Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 21 Apr 2023 08:48:19 +0200 Subject: [PATCH] #10191 fix url sound event on metaconsole --- .../include/javascript/pandora_events.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index 3a043edf8e..e240ba6d8d 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -947,11 +947,19 @@ function process_buffers(buffers) { } function openSoundEventModal(settings) { - var win = open( - "operation/events/sound_events.php", - "day_123", - "width=600,height=500" - ); + if ($("#hidden-metaconsole_activated").val() === "1") { + var win = open( + "../../operation/events/sound_events.php", + "day_123", + "width=600,height=500" + ); + } else { + var win = open( + "operation/events/sound_events.php", + "day_123", + "width=600,height=500" + ); + } if (win) { //Browser has allowed it to be opened win.focus();