#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) { function openSoundEventModal(settings) {
var win = open( if ($("#hidden-metaconsole_activated").val() === "1") {
"operation/events/sound_events.php", var win = open(
"day_123", "../../operation/events/sound_events.php",
"width=600,height=500" "day_123",
); "width=600,height=500"
);
} else {
var win = open(
"operation/events/sound_events.php",
"day_123",
"width=600,height=500"
);
}
if (win) { if (win) {
//Browser has allowed it to be opened //Browser has allowed it to be opened
win.focus(); win.focus();