Skip to content

Node.js based forum software built for the modern web

fix: #10068, update data-index values after sort

Barış Soner Uşaklı236d4e805698
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);
+ });
});
},
});