From 7138d433b15e5eef44c07aeb155bd9e9d84f59e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 8 Oct 2020 09:55:15 -0400 Subject: [PATCH] fix: selector, so it doesnt effect suggested topics --- public/src/client/topic/threadTools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.js index 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; };