remove IS topics on category

ability to specify a container for IS, instead of always assuming
$(document)
This commit is contained in:
barisusakli
2015-09-26 22:27:10 -04:00
parent 5a77a2c21c
commit 41fb4fe6b5
5 changed files with 101 additions and 94 deletions

View File

@@ -124,9 +124,9 @@ define('forum/topic/posts', [
var after, before;
if (direction === 1 && repliesSelector.length) {
if (direction > 0 && repliesSelector.length) {
after = repliesSelector.last();
} else if (direction === -1 && repliesSelector.length) {
} else if (direction < 0 && repliesSelector.length) {
before = repliesSelector.first();
}