fix for user card on topic page

main
psychobunny 9 years ago
parent 7f64e2d1d8
commit 48002a693f

@ -35,8 +35,7 @@
.posts { .posts {
.icon { .icon {
font-size: 17px; position: relative;
line-height: 17px;
border-radius: 50%; border-radius: 50%;
min-width: 46px; min-width: 46px;
min-height: 46px; min-height: 46px;

@ -168,9 +168,10 @@ $(document).ready(function() {
components.get('user/picture') components.get('user/picture')
.on('mouseover', function() { .on('mouseover', function() {
var avatar = $(this), var avatar = $(this),
index = avatar.parents('[data-index]').attr('data-index'); index = avatar.parents('[data-index]').attr('data-index'),
data = (ajaxify.data.topics || ajaxify.data.posts)[index].user;
templates.parse('modules/usercard', ajaxify.data.topics[index].user, function(html) { templates.parse('modules/usercard', data, function(html) {
var card = $(html); var card = $(html);
avatar.parents('a').after(card.hide()); avatar.parents('a').after(card.hide());

Loading…
Cancel
Save