partially revert ef99677f142c6b2dadb0e3f70745f0c4b14cf7d4
This commit is contained in:
parent
4011f4b8a9
commit
fa2ed2218a
@ -385,22 +385,12 @@ Index =
|
|||||||
sortedNodes.push nodes[Index.liveThreadIDs.indexOf(threadID)]
|
sortedNodes.push nodes[Index.liveThreadIDs.indexOf(threadID)]
|
||||||
if Index.isSearching and nodes = Index.querySearch(Index.searchInput.value)
|
if Index.isSearching and nodes = Index.querySearch(Index.searchInput.value)
|
||||||
Index.sortedNodes = nodes
|
Index.sortedNodes = nodes
|
||||||
items = [
|
# Sticky threads
|
||||||
# Sticky threads
|
Index.sortOnTop (thread) -> thread.isSticky
|
||||||
fn: (thread) -> thread.isSticky
|
# Highlighted threads
|
||||||
cnd: true
|
Index.sortOnTop((thread) -> thread.isOnTop) if Conf['Filter']
|
||||||
, # Highlighted threads
|
# Non-hidden threads
|
||||||
fn: (thread) -> thread.isOnTop
|
Index.sortOnTop((thread) -> !thread.isHidden) if Conf['Anchor Hidden Threads']
|
||||||
cnd: Conf['Filter']
|
|
||||||
, # Non-hidden threads
|
|
||||||
fn: (thread) -> !thread.isHidden
|
|
||||||
cnd: Conf['Anchor Hidden Threads']
|
|
||||||
]
|
|
||||||
i = 0
|
|
||||||
while item = items[i++]
|
|
||||||
{fn, cnd} = item
|
|
||||||
Index.sortOnTop fn if cnd
|
|
||||||
return
|
|
||||||
|
|
||||||
sortOnTop: (match) ->
|
sortOnTop: (match) ->
|
||||||
topNodes = []
|
topNodes = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user