From f5c517ae7dea483a3d675f21e661574d23b3e38e Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 21 Apr 2023 09:30:22 +0200 Subject: [PATCH] #10191 event sound fix select2 --- pandora_console/include/functions_ui.php | 2 +- pandora_console/operation/events/sound_events.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 11670b33f6..e0750a16ee 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1744,7 +1744,7 @@ function ui_require_javascript_file($name, $path='include/javascript/', $echo_ta if (is_metaconsole() && (isset($config['requirements_use_base_url']) === false - || $config['requirements_use_base_url'] === false) + || $config['requirements_use_base_url'] === false) && $filename !== 'include/javascript/select2.min.js' ) { $config['js'][$name] = '../../'.$filename; } else { diff --git a/pandora_console/operation/events/sound_events.php b/pandora_console/operation/events/sound_events.php index 8633cadf86..f71dd0fa5d 100644 --- a/pandora_console/operation/events/sound_events.php +++ b/pandora_console/operation/events/sound_events.php @@ -582,7 +582,7 @@ $(document).ready(function(){ sound = true; } var urlSound = '../../include/sounds/'+$('#sound_id :selected').val(); - console.log(urlSound); + test_sound_button(sound, urlSound); });