#10191 event sound fix select2

This commit is contained in:
Jonathan 2023-04-21 09:30:22 +02:00
parent a28aef4050
commit f5c517ae7d
2 changed files with 2 additions and 2 deletions

View File

@ -1744,7 +1744,7 @@ function ui_require_javascript_file($name, $path='include/javascript/', $echo_ta
if (is_metaconsole() if (is_metaconsole()
&& (isset($config['requirements_use_base_url']) === false && (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; $config['js'][$name] = '../../'.$filename;
} else { } else {

View File

@ -582,7 +582,7 @@ $(document).ready(function(){
sound = true; sound = true;
} }
var urlSound = '../../include/sounds/'+$('#sound_id :selected').val(); var urlSound = '../../include/sounds/'+$('#sound_id :selected').val();
console.log(urlSound);
test_sound_button(sound, urlSound); test_sound_button(sound, urlSound);
}); });