Commit 05ce6102 authored by Mike Sheldon's avatar Mike Sheldon

Fix loading of multiple sequential flattr buttons

parent 2b1a22cc
......@@ -305,7 +305,8 @@ function loadSong(song) {
function updateFlattr(data) {
var flattr_uid = data.flattr.flattr_uid;
if (flattr_uid) {
$("#flattr").replaceWith('<a id="flattr" class="FlattrButton" style="display:none;" title=' + artist + ' - ' + track + '" rev="flattr;uid:' + flattr_uid + ';category:audio;tags:music,creative commons,free,libre.fm;" href="' + trackpage + '">' + artist + ' is making ' + track + ' freely available on Libre.fm for you to listen to, share and remix however you like.</a>');
$("#flattr").empty();
$("#flattr").html('<a class="FlattrButton" style="display:none;" title=' + artist + ' - ' + track + '" rev="flattr;uid:' + flattr_uid + ';category:audio;tags:music,creative commons,free,libre.fm;" href="' + trackpage + '">' + artist + ' is making ' + track + ' freely available on Libre.fm for you to listen to, share and remix however you like.</a>');
FlattrLoader.setup();
$("#flattrstream").show(1000);
} else {
......
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