Fix #1536
This commit is contained in:
parent
62321ecb18
commit
a65c724cfb
@ -448,7 +448,10 @@ Index =
|
|||||||
if req.status is 200
|
if req.status is 200
|
||||||
Index.parse req.response, pageNum
|
Index.parse req.response, pageNum
|
||||||
else if req.status is 304 and pageNum?
|
else if req.status is 304 and pageNum?
|
||||||
Index.pageNav pageNum
|
if Index.currentPage is pageNum
|
||||||
|
Index.buildIndex()
|
||||||
|
else
|
||||||
|
Index.pageNav pageNum
|
||||||
catch err
|
catch err
|
||||||
c.error 'Index failure:', err.stack
|
c.error 'Index failure:', err.stack
|
||||||
# network error or non-JSON content for example.
|
# network error or non-JSON content for example.
|
||||||
@ -473,7 +476,7 @@ Index =
|
|||||||
Index.parseThreadList pages
|
Index.parseThreadList pages
|
||||||
Index.buildThreads()
|
Index.buildThreads()
|
||||||
Index.sort()
|
Index.sort()
|
||||||
if pageNum?
|
if pageNum? and Index.currentPage isnt pageNum
|
||||||
Index.pageNav pageNum
|
Index.pageNav pageNum
|
||||||
return
|
return
|
||||||
Index.buildIndex()
|
Index.buildIndex()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user