From ec62296b7f83eb12daac8e79f073b241abad08a0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 23 Jan 2016 13:03:06 -0800 Subject: [PATCH] Fix incomplete page warning from 0b67863b84599c32b479cfdce66d63a49efa5d21 so it works on JSON index. #509 --- src/General/Main.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 44c216202..33907350f 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -210,6 +210,12 @@ Main = 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.
Some features may not work unless you reload.') %> + $.on $('a', msg), 'click', -> location.reload() + new Notice 'warning', msg + # Parse HTML or skip it and start building from JSON. unless Conf['JSON Navigation'] and g.VIEW is 'index' Main.initThread() @@ -219,12 +225,6 @@ Main = initThread: -> if board = $ '.board' - unless $ '.board + *' - msg = $.el 'div', - <%= html('The page didn't load completely.
Some features may not work unless you reload.') %> - $.on $('a', msg), 'click', -> location.reload() - new Notice 'warning', msg - threads = [] posts = []