fix crash

This commit is contained in:
Barış Soner Uşaklı
2022-08-24 16:39:29 -04:00
parent f2bd8e22d7
commit d5d4c1b3ed

View File

@@ -355,10 +355,11 @@ define('forum/topic/threadTools', [
unfollow: '[[topic:not-watching]]',
ignore: '[[topic:ignoring]]',
};
// TODO: doesnt work on bs5
translator.translate(titles[state], function (translatedTitle) {
$('[component="topic/watch"] button')
$('[component="topic/watch"]')
.attr('title', translatedTitle)
.tooltip('fixTitle');
.tooltip();
});
let menu = components.get('topic/following/menu');