Make Index.pageLoad a bit cleaner.
This commit is contained in:
parent
88a629ea0f
commit
84735fee8c
@ -391,13 +391,14 @@ Index =
|
|||||||
pageLoad: (scroll=true) ->
|
pageLoad: (scroll=true) ->
|
||||||
return unless Index.liveThreadData
|
return unless Index.liveThreadData
|
||||||
{threads, search, mode, sort, page, hash} = Index.changed
|
{threads, search, mode, sort, page, hash} = Index.changed
|
||||||
Index.sort() if threads or search or sort
|
threads or= search
|
||||||
Index.buildPagelist() if threads or search
|
Index.sort() if threads or sort
|
||||||
|
Index.buildPagelist() if threads
|
||||||
Index.setupSearch() if search
|
Index.setupSearch() if search
|
||||||
Index.setupMode() if mode
|
Index.setupMode() if mode
|
||||||
Index.setupSort() if sort
|
Index.setupSort() if sort
|
||||||
Index.buildIndex() if threads or search or mode or page or sort
|
Index.buildIndex() if threads or mode or page or sort
|
||||||
Index.setPage() if threads or search or page
|
Index.setPage() if threads or page
|
||||||
Index.scrollToIndex() if scroll and not hash
|
Index.scrollToIndex() if scroll and not hash
|
||||||
Header.hashScroll() if hash
|
Header.hashScroll() if hash
|
||||||
Index.changed = {}
|
Index.changed = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user