mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
Added support for a theme to generate a link back to a parent post
This commit is contained in:
@@ -57,6 +57,8 @@ define('forum/topic', [
|
||||
|
||||
addBlockQuoteHandler();
|
||||
|
||||
addParentHandler();
|
||||
|
||||
handleBookmark(tid);
|
||||
|
||||
handleKeys();
|
||||
@@ -191,6 +193,11 @@ define('forum/topic', [
|
||||
});
|
||||
}
|
||||
|
||||
function addParentHandler() {
|
||||
components.get('topic').on('click', '[component="post/parent"]', function() {
|
||||
navigator.scrollToPost(parseInt(this.getAttribute('data-index'), 10), true);
|
||||
});
|
||||
}
|
||||
|
||||
function enableInfiniteLoadingOrPagination() {
|
||||
if (!config.usePagination) {
|
||||
|
||||
Reference in New Issue
Block a user