mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix first reply insertion
This commit is contained in:
@@ -123,9 +123,9 @@ define('forum/topic/posts', [
|
||||
|
||||
var after, before;
|
||||
|
||||
if (direction === 1) {
|
||||
if (direction === 1 && repliesSelector.length) {
|
||||
after = repliesSelector.last();
|
||||
} else if (direction === -1) {
|
||||
} else if (direction === -1 && repliesSelector.length) {
|
||||
before = repliesSelector.first();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user