mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
store teaserPid in topic
-update teaser pid as necessary in addPostToTopic, removePostFromTopic, post purge -removed 20x db calls from getTeasers -fixed scroll to post in sub folder install -upgrade script to update topics with teaserPid
This commit is contained in:
@@ -104,7 +104,7 @@ define('forum/topic', [
|
||||
|
||||
function getPostIndex() {
|
||||
var parts = window.location.pathname.split('/');
|
||||
return parts[4] ? parseInt(parts[4], 10) : 0;
|
||||
return parts[parts.length - 1] ? parseInt(parts[parts.length - 1], 10) : 0;
|
||||
}
|
||||
|
||||
function handleSorting() {
|
||||
|
||||
Reference in New Issue
Block a user