mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fixes topics going to the bottom
This commit is contained in:
@@ -191,7 +191,8 @@ define(['composer', 'forum/pagination', 'share', 'navigator', 'forum/categoryToo
|
||||
|
||||
if (numTopics > 0) {
|
||||
for (var x = 0; x < numTopics; x++) {
|
||||
if ($(topics[x]).find('.fa-thumb-tack').length) {
|
||||
var pin = $(topics[x]).find('.fa-thumb-tack');
|
||||
if (pin.length && !pin.hasClass('hide')) {
|
||||
if(x === numTopics - 1) {
|
||||
topic.insertAfter(topics[x]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user