mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fix sort on category page
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user