From 236d4e8056988d4a73cd4cea4db310f140ee11ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 8 Dec 2021 11:16:49 -0500 Subject: [PATCH] fix: #10068, update data-index values after sort --- public/src/client/category/tools.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.js index eba385206f..385255760b 100644 --- a/public/src/client/category/tools.js +++ b/public/src/client/category/tools.js @@ -299,6 +299,9 @@ define('forum/category/tools', [ if (err) { return alerts.error(err); } + topicListEl.find('[component="category/topic"].pinned').each((index, el) => { + $(el).attr('data-index', baseIndex + index); + }); }); }, });