mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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');
|
currentSetting.find('i').addClass('fa-check');
|
||||||
|
|
||||||
$('body')
|
$('body')
|
||||||
.off('click', '[component="thread/sort"] a')
|
.off('click', '[component="thread/sort"] a[data-sort]')
|
||||||
.on('click', '[component="thread/sort"] a', function () {
|
.on('click', '[component="thread/sort"] a[data-sort]', function () {
|
||||||
const newSetting = $(this).attr('data-sort');
|
const newSetting = $(this).attr('data-sort');
|
||||||
const urlParams = utils.params();
|
const urlParams = utils.params();
|
||||||
urlParams.sort = newSetting;
|
urlParams.sort = newSetting;
|
||||||
|
|||||||
Reference in New Issue
Block a user