Node.js based forum software built for the modern web
fix: selector, so it doesnt effect suggested topics
Barış Soner Uşaklı7138d433b15e
diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.jsindex c8bdcff18f..03044352c7 100644--- a/public/src/client/topic/threadTools.js+++ b/public/src/client/topic/threadTools.js@@ -206,7 +206,7 @@ define('forum/topic/threadTools', [threadEl.find('[component="post"][data-uid="' + app.user.uid + '"].deleted [component="post/tools"]').toggleClass('hidden', isLocked);- $('[component="topic/locked"]').toggleClass('hidden', !data.isLocked);+ $('.topic-header [component="topic/locked"]').toggleClass('hidden', !data.isLocked);$('[component="post/tools"] .dropdown-menu').html('');ajaxify.data.locked = data.isLocked;};@@ -251,7 +251,7 @@ define('forum/topic/threadTools', [components.get('topic/pin').toggleClass('hidden', data.isPinned).parent().attr('hidden', data.isPinned ? '' : null);components.get('topic/unpin').toggleClass('hidden', !data.isPinned).parent().attr('hidden', !data.isPinned ? '' : null);- $('[component="topic/pinned"]').toggleClass('hidden', !data.isPinned);+ $('.topic-header [component="topic/pinned"]').toggleClass('hidden', !data.isPinned);ajaxify.data.pinned = data.isPinned;};