diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 9c1eaf2e27..11aa8f54e9 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -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() {
diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl
index 8a134876cd..ec72ff958b 100644
--- a/public/templates/topic.tpl
+++ b/public/templates/topic.tpl
@@ -66,7 +66,7 @@
-