mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: stricter selector for sort
This commit is contained in:
@@ -12,8 +12,8 @@ define('sort', ['components'], function (components) {
|
||||
currentSetting.find('i').addClass('fa-check');
|
||||
|
||||
$('body')
|
||||
.off('click', '[component="thread/sort"] a')
|
||||
.on('click', '[component="thread/sort"] a', function () {
|
||||
.off('click', '[component="thread/sort"] a[data-sort]')
|
||||
.on('click', '[component="thread/sort"] a[data-sort]', function () {
|
||||
const newSetting = $(this).attr('data-sort');
|
||||
const urlParams = utils.params();
|
||||
urlParams.sort = newSetting;
|
||||
|
||||
Reference in New Issue
Block a user