summaryrefslogtreecommitdiff
path: root/views/partials/syndication-js.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/syndication-js.php')
-rw-r--r--views/partials/syndication-js.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/partials/syndication-js.php b/views/partials/syndication-js.php
index bd657f3..088cb43 100644
--- a/views/partials/syndication-js.php
+++ b/views/partials/syndication-js.php
@@ -5,8 +5,9 @@ function reload_syndications() {
$("#syndication-container").html('<ul></ul>');
for(var i in data.targets) {
var target = data.targets[i].target;
+ var uid = data.targets[i].uid;
var favicon = data.targets[i].favicon;
- $("#syndication-container ul").append('<li><button data-syndication="'+target+'" class="btn btn-default btn-block"><img src="'+favicon+'" width="16" height="16"> '+target+'</button></li>');
+ $("#syndication-container ul").append('<li><button data-syndicate-to="'+(uid ? uid : target)+'" class="btn btn-default btn-block">'+(favicon ? '<img src="'+favicon+'" width="16" height="16"> ':'')+target+'</button></li>');
}
bind_syndication_buttons();
} else {