From f1818d0b134af74b70131fed320bc44663d309ec Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 11 May 2014 19:19:34 -0700 Subject: [PATCH] fix index not loading with a 304 response --- src/General/Index.coffee | 6 ++---- src/General/Navigate.coffee | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 8125eaa46..5f1b054a9 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -222,7 +222,7 @@ Index = $.before a, strong $.add strong, a - update: (pageNum) -> + update: (pageNum, forceReparse) -> return unless navigator.onLine if g.VIEW is 'thread' return ThreadUpdater.update() if Conf['Thread Updater'] @@ -247,7 +247,7 @@ Index = onabort: onload onloadend: onload , - whenModified: Index.board is "#{g.BOARD}" + whenModified: !forceReparse $.addClass Index.button, 'fa-spin' load: (e, pageNum) -> @@ -275,8 +275,6 @@ Index = Navigate.title() - Index.board = "#{g.BOARD}" - try if req.status is 200 Index.parse req.response, pageNum diff --git a/src/General/Navigate.coffee b/src/General/Navigate.coffee index 3db08ca3c..bf02ac164 100644 --- a/src/General/Navigate.coffee +++ b/src/General/Navigate.coffee @@ -223,7 +223,7 @@ Navigate = Navigate.updateSFW Favicon.SFW if view is 'index' - return Index.update pageNum + return Index.update pageNum, true # Moving from index to thread or thread to thread {load} = Navigate