Skip to content

Node.js based forum software built for the modern web

feat: remove post/header selector

Barış Soner Uşaklı1542a5d7e561
diff --git a/public/src/client/topic/threadTools.js b/public/src/client/topic/threadTools.js
index 9eebc5919c..c8bdcff18f 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="post/header"] [component="topic/locked"]').toggleClass('hidden', !data.isLocked);
+ $('[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="post/header"] [component="topic/pinned"]').toggleClass('hidden', !data.isPinned);
+ $('[component="topic/pinned"]').toggleClass('hidden', !data.isPinned);
ajaxify.data.pinned = data.isPinned;
};