fix index not loading with a 304 response

This commit is contained in:
ccd0 2014-05-11 19:19:34 -07:00
parent c3f04314cc
commit f1818d0b13
2 changed files with 3 additions and 5 deletions

View File

@ -222,7 +222,7 @@ Index =
$.before a, strong $.before a, strong
$.add strong, a $.add strong, a
update: (pageNum) -> update: (pageNum, forceReparse) ->
return unless navigator.onLine return unless navigator.onLine
if g.VIEW is 'thread' if g.VIEW is 'thread'
return ThreadUpdater.update() if Conf['Thread Updater'] return ThreadUpdater.update() if Conf['Thread Updater']
@ -247,7 +247,7 @@ Index =
onabort: onload onabort: onload
onloadend: onload onloadend: onload
, ,
whenModified: Index.board is "#{g.BOARD}" whenModified: !forceReparse
$.addClass Index.button, 'fa-spin' $.addClass Index.button, 'fa-spin'
load: (e, pageNum) -> load: (e, pageNum) ->
@ -275,8 +275,6 @@ Index =
Navigate.title() Navigate.title()
Index.board = "#{g.BOARD}"
try try
if req.status is 200 if req.status is 200
Index.parse req.response, pageNum Index.parse req.response, pageNum

View File

@ -223,7 +223,7 @@ Navigate =
Navigate.updateSFW Favicon.SFW Navigate.updateSFW Favicon.SFW
if view is 'index' if view is 'index'
return Index.update pageNum return Index.update pageNum, true
# Moving from index to thread or thread to thread # Moving from index to thread or thread to thread
{load} = Navigate {load} = Navigate