post/header component

This commit is contained in:
psychobunny
2015-03-17 14:31:32 -04:00
parent 61db112942
commit a740e8e98f
3 changed files with 6 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
});
threadEl.find('.quote, .edit, .delete').toggleClass('hidden', isLocked);
$('.topic-title i.fa-lock').toggleClass('hide', !data.isLocked);
$('[component="post/header"] i.fa-lock, .topic-title i.fa-lock').toggleClass('hide', !data.isLocked);
ThreadTools.threadState.locked = data.isLocked;
}
};
@@ -143,7 +143,7 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
$('.pin_thread').html(translated);
ThreadTools.threadState.pinned = data.isPinned;
});
$('.topic-title i.fa-thumb-tack').toggleClass('hide', !data.isPinned);
$('[component="post/header"] i.fa-thumb-tack, .topic-title i.fa-thumb-tack').toggleClass('hide', !data.isPinned);
}
};