Remove redundant index re-sorts.
This commit is contained in:
parent
84735fee8c
commit
785abe09b7
@ -230,8 +230,8 @@ Index =
|
|||||||
Index.pageLoad false
|
Index.pageLoad false
|
||||||
|
|
||||||
resort: ->
|
resort: ->
|
||||||
Index.sort()
|
Index.changed.order = true
|
||||||
Index.buildIndex()
|
Index.pageLoad false
|
||||||
|
|
||||||
perBoardSort: ->
|
perBoardSort: ->
|
||||||
Conf['Index Sort'] = if @checked then {} else ''
|
Conf['Index Sort'] = if @checked then {} else ''
|
||||||
@ -390,14 +390,15 @@ Index =
|
|||||||
|
|
||||||
pageLoad: (scroll=true) ->
|
pageLoad: (scroll=true) ->
|
||||||
return unless Index.liveThreadData
|
return unless Index.liveThreadData
|
||||||
{threads, search, mode, sort, page, hash} = Index.changed
|
{threads, order, search, mode, sort, page, hash} = Index.changed
|
||||||
threads or= search
|
threads or= search
|
||||||
Index.sort() if threads or sort
|
order or= sort
|
||||||
|
Index.sort() if threads or order
|
||||||
Index.buildPagelist() if threads
|
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 mode or page or sort
|
Index.buildIndex() if threads or mode or page or order
|
||||||
Index.setPage() if threads 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user