Node.js based forum software built for the modern web
fix: watch tooltip
Barış Soner Uşaklıe2d407b769a7
diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.jsindex b405a8bcee..ab1383fbd0 100644--- a/public/src/client/topic/threadTools.js+++ b/public/src/client/topic/threadTools.js@@ -259,6 +259,17 @@ define('forum/topic/threadTools', [};function setFollowState(state) {+ var titles = {+ follow: '[[topic:watching]]',+ unfollow: '[[topic:not-watching]]',+ ignore: '[[topic:ignoring]]',+ };+ translator.translate(titles[state], function (translatedTitle) {+ $('[component="topic/watch"] button')+ .attr('title', translatedTitle)+ .tooltip('fixTitle');+ });+var menu = components.get('topic/following/menu');menu.toggleClass('hidden', state !== 'follow');components.get('topic/following/check').toggleClass('fa-check', state === 'follow');