mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
Move to client side
This commit is contained in:
@@ -342,7 +342,16 @@ define(['composer'], function(composer) {
|
||||
}
|
||||
})();
|
||||
|
||||
$('.favourite-tooltip').tooltip();
|
||||
$('#post-container').on('mouseenter', '.favourite-tooltip', function(e) {
|
||||
if (!$(this).data('users-loaded')) {
|
||||
$(this).data('users-loaded', "true");
|
||||
var pid = $(this).parents('.post-row').attr('data-pid');
|
||||
var el = $(this).attr('title', "Loading...");
|
||||
socket.emit('posts.getFavouritedUsers', pid, function(err, usernames) {
|
||||
el.attr('title', usernames).tooltip('show');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function enableInfiniteLoading() {
|
||||
|
||||
Reference in New Issue
Block a user