Commit 60bc2592 authored by P. J. McDermott's avatar P. J. McDermott

Fix call to jQuery's replaceWith() in web player.

There is no method replaceWith() for interface Element in the DOM; as a
result, web browsers that don't support the audio element see a
JavaScript error. We want to use jQuery's replaceWith() method instead.
This should fix bug #341 in Redmine and bug #26700 in Savannah.
parent b5e64dba
......@@ -53,7 +53,7 @@ function playerInit(list, sk, ws, rk) {
if(typeof audio.duration == "undefined") {
//Browser doesn't support <audio>
if(streaming) {
audio.replaceWith("<p>Sorry, you need a browser capable of using the HTML 5 &lt;audio&gt; element to enjoy the streaming service via the Javascript player.</p>");
$("#audio").replaceWith("<p>Sorry, you need a browser capable of using the HTML 5 &lt;audio&gt; element to enjoy the streaming service via the Javascript player.</p>");
}
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment