Fix page number code.

Fixes bug from 04fa72aed9eba7658966bb242e0136794d1e611b.
This commit is contained in:
ccd0 2014-09-14 11:57:26 -07:00
parent 64de9f69a2
commit 8e450622b7

View File

@ -323,8 +323,8 @@ Index =
thread = new Thread threadData.no, g.BOARD
threads.push thread
Index.nodes.push threadRoot
continue if thread.ID of thread.posts
posts.push new Post $('.opContainer', threadRoot), thread, g.BOARD
unless thread.ID of thread.posts
posts.push new Post $('.opContainer', threadRoot), thread, g.BOARD
thread.setPage i // Index.threadsNumPerPage + 1
catch err
# Skip posts that we failed to parse.