#10191 fix url sound event on metaconsole

This commit is contained in:
Jonathan 2023-04-21 08:48:19 +02:00
parent b36ade1821
commit a28aef4050
1 changed files with 13 additions and 5 deletions

View File

@ -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();