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
$.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

View File

@ -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