mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-22 07:23:01 +01:00
breaking: match topic page class for hiding
This commit is contained in:
@@ -247,20 +247,20 @@ define('forum/category/tools', [
|
||||
function setDeleteState(data) {
|
||||
const topic = getTopicEl(data.tid);
|
||||
topic.toggleClass('deleted', data.isDeleted);
|
||||
topic.find('[component="topic/locked"]').toggleClass('hide', !data.isDeleted);
|
||||
topic.find('[component="topic/locked"]').toggleClass('hidden', !data.isDeleted);
|
||||
}
|
||||
|
||||
function setPinnedState(data) {
|
||||
const topic = getTopicEl(data.tid);
|
||||
topic.toggleClass('pinned', data.isPinned);
|
||||
topic.find('[component="topic/pinned"]').toggleClass('hide', !data.isPinned);
|
||||
topic.find('[component="topic/pinned"]').toggleClass('hidden', !data.isPinned);
|
||||
ajaxify.refresh();
|
||||
}
|
||||
|
||||
function setLockedState(data) {
|
||||
const topic = getTopicEl(data.tid);
|
||||
topic.toggleClass('locked', data.isLocked);
|
||||
topic.find('[component="topic/locked"]').toggleClass('hide', !data.isLocked);
|
||||
topic.find('[component="topic/locked"]').toggleClass('hidden', !data.isLocked);
|
||||
}
|
||||
|
||||
function onTopicMoved(data) {
|
||||
|
||||
Reference in New Issue
Block a user