Browse Source

Bug 11431: (QA followup) Fix js error

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
3.22.x
Kyle Hall 9 years ago
committed by Tomas Cohen Arazi
parent
commit
f73fdc9ebb
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js

2
koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js

@ -122,7 +122,7 @@ function confirmDelete(message) {
}
function playSound( sound ) {
if ( ! ( sound.indexOf('http://') == 0 || sound.indexOf('https://') == 0 ) {
if ( ! ( sound.indexOf('http://') == 0 || sound.indexOf('https://') == 0 ) ) {
sound = AUDIO_ALERT_PATH + sound;
}
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>';

Loading…
Cancel
Save