@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js @@ -122,8 +122,7 @@ function confirmDelete(message) { } function playSound( sound ) { - // This is way faster than substring - if ( ! ( sound.charAt(4) == ':' && sound.charAt(5) == '/' && sound.charAt(6) == '/' ) ) { + if ( ! ( sound.indexOf('http://') == 0 || sound.indexOf('https://') == 0 ) { sound = AUDIO_ALERT_PATH + sound; } document.getElementById("audio-alert").innerHTML = ''; --