main
psychobunny 9 years ago
parent 19dec7ca1b
commit 42c22d4409

@ -165,8 +165,14 @@ $(document).ready(function() {
function setupHoverCards() {
require(['components'], function(components) {
components.get('user/picture')
.on('mouseover', generateUserCard);
components.get('topic')
.on('mouseover', '[component="user/picture"]', generateUserCard);
});
$(window).on('action:posts.loading', function(ev, data) {
for (var i = 0, ii = data.posts.length; i < ii; i++) {
(ajaxify.data.topics || ajaxify.data.posts)[data.posts[i].index] = data.posts[i];
}
});
}

Loading…
Cancel
Save