From 84735fee8cf2eb9a855dc5a9a63a6acf9572c23a Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 17 Sep 2016 05:11:15 -0700 Subject: [PATCH] Make Index.pageLoad a bit cleaner. --- src/General/Index.coffee | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 5d1389b60..1c181b444 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -391,13 +391,14 @@ Index = pageLoad: (scroll=true) -> return unless Index.liveThreadData {threads, search, mode, sort, page, hash} = Index.changed - Index.sort() if threads or search or sort - Index.buildPagelist() if threads or search + threads or= search + Index.sort() if threads or sort + Index.buildPagelist() if threads Index.setupSearch() if search Index.setupMode() if mode Index.setupSort() if sort - Index.buildIndex() if threads or search or mode or page or sort - Index.setPage() if threads or search or page + Index.buildIndex() if threads or mode or page or sort + Index.setPage() if threads or page Index.scrollToIndex() if scroll and not hash Header.hashScroll() if hash Index.changed = {}