Node.js based forum software built for the modern web
fix: flicker on tooltips if server call takes long time
Barış Soner Uşaklı4c7374ea33da
diff --git a/public/src/client/topic/votes.js b/public/src/client/topic/votes.jsindex 8ea9091089..731b7f63ba 100644--- a/public/src/client/topic/votes.js+++ b/public/src/client/topic/votes.js@@ -15,6 +15,7 @@ define('forum/topic/votes', [var $this = $(this);var el = $this.parent();+ el.find('.tooltip').css('display', 'none');var pid = el.parents('[data-pid]').attr('data-pid');socket.emit('posts.getUpvoters', [pid], function (err, data) {@@ -32,6 +33,7 @@ define('forum/topic/votes', [function createTooltip(el, data) {function doCreateTooltip(title) {el.attr('title', title).tooltip('fixTitle').tooltip('show');+ el.parent().find('.tooltip').css('display', '');}var usernames = data.usernames.filter(name => name !== '[[global:former_user]]');