From a65c724cfbae512595dfd31158bb91ae30b9e21a Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 5 Apr 2014 14:03:32 +0200 Subject: [PATCH] Fix #1536 --- src/General/Index.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 562ebc2b9..04a3634b3 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -448,7 +448,10 @@ Index = if req.status is 200 Index.parse req.response, 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 c.error 'Index failure:', err.stack # network error or non-JSON content for example. @@ -473,7 +476,7 @@ Index = Index.parseThreadList pages Index.buildThreads() Index.sort() - if pageNum? + if pageNum? and Index.currentPage isnt pageNum Index.pageNav pageNum return Index.buildIndex()