Skip to content

Commit

Permalink
fix: watch tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 11, 2020
1 parent aedd28e commit e2d407b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions public/src/client/topic/threadTools.js
Expand Up @@ -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');
Expand Down

0 comments on commit e2d407b

Please sign in to comment.