Fix incomplete page warning from 0b67863b84599c32b479cfdce66d63a49efa5d21 so it works on JSON index. #509
This commit is contained in:
parent
3e5a3cc8d7
commit
ec62296b7f
@ -210,6 +210,12 @@ Main =
|
|||||||
|
|
||||||
return if d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found']
|
return if d.title in ['4chan - Temporarily Offline', '4chan - 404 Not Found']
|
||||||
|
|
||||||
|
if g.VIEW in ['index', 'thread'] and not $('.board + *')
|
||||||
|
msg = $.el 'div',
|
||||||
|
<%= html('The page didn't load completely.<br>Some features may not work unless you <a href="javascript:;">reload</a>.') %>
|
||||||
|
$.on $('a', msg), 'click', -> location.reload()
|
||||||
|
new Notice 'warning', msg
|
||||||
|
|
||||||
# Parse HTML or skip it and start building from JSON.
|
# Parse HTML or skip it and start building from JSON.
|
||||||
unless Conf['JSON Navigation'] and g.VIEW is 'index'
|
unless Conf['JSON Navigation'] and g.VIEW is 'index'
|
||||||
Main.initThread()
|
Main.initThread()
|
||||||
@ -219,12 +225,6 @@ Main =
|
|||||||
|
|
||||||
initThread: ->
|
initThread: ->
|
||||||
if board = $ '.board'
|
if board = $ '.board'
|
||||||
unless $ '.board + *'
|
|
||||||
msg = $.el 'div',
|
|
||||||
<%= html('The page didn't load completely.<br>Some features may not work unless you <a href="javascript:;">reload</a>.') %>
|
|
||||||
$.on $('a', msg), 'click', -> location.reload()
|
|
||||||
new Notice 'warning', msg
|
|
||||||
|
|
||||||
threads = []
|
threads = []
|
||||||
posts = []
|
posts = []
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user