Skip to content

Commit

Permalink
fix: stricter selector for sort
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Dec 23, 2023
1 parent 563e03b commit a74b514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/modules/sort.js
Expand Up @@ -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;
Expand Down

0 comments on commit a74b514

Please sign in to comment.