mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
Merge branch 'favourite-spy' of https://github.com/BitBangersCode/NodeBB into BitBangersCode-favourite-spy
This commit is contained in:
@@ -341,6 +341,17 @@ define(['composer'], function(composer) {
|
||||
updateHeader();
|
||||
}
|
||||
})();
|
||||
|
||||
$('#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