prevent more than one usercard shown at a time

main
psychobunny 10 years ago
parent b8b409e890
commit 62accf7c45

@ -175,6 +175,8 @@ $(document).ready(function() {
index = avatar.parents('[data-index]').attr('data-index'),
data = (ajaxify.data.topics || ajaxify.data.posts)[index].user;
$('.persona-usercard').remove();
socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) {
app.parseAndTranslate('modules/usercard', data, function(html) {
var card = $(html);

Loading…
Cancel
Save