Skip to content

Node.js based forum software built for the modern web

fix sort on category page

barisusaklid351d014909f
diff --git a/public/src/modules/sort.js b/public/src/modules/sort.js
index a6fe38f90b..960e21facb 100644
--- a/public/src/modules/sort.js
+++ b/public/src/modules/sort.js
@@ -10,7 +10,7 @@ define('sort', ['components'], function(components) {
var currentSetting = threadSort.find('a[data-sort="' + config[field] + '"]');
currentSetting.find('i').addClass('fa-check');
- components.get('topic').on('click', '[component="thread/sort"] a', function() {
+ $('.category, .topic').on('click', '[component="thread/sort"] a', function() {
var newSetting = $(this).attr('data-sort');
socket.emit(method, newSetting, function(err) {
if (err) {