From 1e3577afe5fd033d4ce33c5177ecef175cce17c7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 20 Apr 2014 00:45:25 -0400 Subject: [PATCH] fixes topics going to the bottom --- public/src/forum/category.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/forum/category.js b/public/src/forum/category.js index e834156a3a..0d31b23bd2 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -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]); }