fix index not loading with a 304 response
This commit is contained in:
parent
c3f04314cc
commit
f1818d0b13
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user