View | Details | Raw Unified | Return to bug 33731
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-1 / +2 lines)
Lines 552-558 Link Here
552
                }
552
                }
553
            });
553
            });
554
            function playSound( sound ) {
554
            function playSound( sound ) {
555
                if (  ( sound.indexOf('http://') == 0 || sound.indexOf('https://') == 0 )  ) {
555
                if (!(sound.indexOf("http://") === 0 || sound.indexOf("https://") === 0)) {
556
                    sound = '[% interface | html %]' + '/bootstrap/sound/' + sound;
556
                    document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>';
557
                    document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>';
557
                }
558
                }
558
            }
559
            }

Return to bug 33731