mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #10068, update data-index values after sort
This commit is contained in:
@@ -299,6 +299,9 @@ define('forum/category/tools', [
|
|||||||
if (err) {
|
if (err) {
|
||||||
return alerts.error(err);
|
return alerts.error(err);
|
||||||
}
|
}
|
||||||
|
topicListEl.find('[component="category/topic"].pinned').each((index, el) => {
|
||||||
|
$(el).attr('data-index', baseIndex + index);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user