Get rid of obsolete thread.nodes.placeholder.
This commit is contained in:
parent
7f64cd9c26
commit
ddb0c3b048
@ -173,9 +173,6 @@ Build =
|
|||||||
thread: (thread, data) ->
|
thread: (thread, data) ->
|
||||||
if (root = thread.nodes.root)
|
if (root = thread.nodes.root)
|
||||||
$.rmAll root
|
$.rmAll root
|
||||||
if thread.nodes.placeholder
|
|
||||||
thread.nodes.placeholder = null
|
|
||||||
thread.OP.setCatalogOP false
|
|
||||||
else
|
else
|
||||||
thread.nodes.root = root = $.el 'div',
|
thread.nodes.root = root = $.el 'div',
|
||||||
className: 'thread'
|
className: 'thread'
|
||||||
|
|||||||
@ -629,7 +629,9 @@ Index =
|
|||||||
newThreads.push thread
|
newThreads.push thread
|
||||||
threads.push thread
|
threads.push thread
|
||||||
|
|
||||||
if not ((OP = thread.OP) and not OP.isFetchedQuote)
|
if ((OP = thread.OP) and not OP.isFetchedQuote)
|
||||||
|
OP.setCatalogOP false
|
||||||
|
else
|
||||||
obj = Index.parsedThreads[ID]
|
obj = Index.parsedThreads[ID]
|
||||||
OP = new Post Build.post(obj), thread, g.BOARD
|
OP = new Post Build.post(obj), thread, g.BOARD
|
||||||
OP.filterResults = obj.filterResults
|
OP.filterResults = obj.filterResults
|
||||||
@ -784,10 +786,6 @@ Index =
|
|||||||
Index.buildReplies threads if Conf['Show Replies']
|
Index.buildReplies threads if Conf['Show Replies']
|
||||||
nodes = []
|
nodes = []
|
||||||
for thread in threads
|
for thread in threads
|
||||||
if thread.nodes.placeholder
|
|
||||||
$.replace thread.nodes.placeholder, thread.OP.nodes.root
|
|
||||||
thread.nodes.placeholder = null
|
|
||||||
thread.OP.setCatalogOP false
|
|
||||||
nodes.push thread.nodes.root, $.el('hr')
|
nodes.push thread.nodes.root, $.el('hr')
|
||||||
$.add Index.root, nodes
|
$.add Index.root, nodes
|
||||||
if doc.contains Index.root
|
if doc.contains Index.root
|
||||||
@ -800,11 +798,8 @@ Index =
|
|||||||
Index.buildCatalogReplies threads if Conf['Show Replies'] and Conf['Catalog Hover Expand']
|
Index.buildCatalogReplies threads if Conf['Show Replies'] and Conf['Catalog Hover Expand']
|
||||||
nodes = []
|
nodes = []
|
||||||
for thread in threads
|
for thread in threads
|
||||||
unless thread.nodes.placeholder
|
thread.OP.setCatalogOP true
|
||||||
thread.nodes.placeholder = $.el 'div'
|
$.add thread.catalogView.nodes.root, thread.OP.nodes.root
|
||||||
$.replace thread.OP.nodes.root, thread.nodes.placeholder
|
|
||||||
$.add thread.catalogView.nodes.root, thread.OP.nodes.root
|
|
||||||
thread.OP.setCatalogOP true
|
|
||||||
nodes.push thread.catalogView.nodes.root
|
nodes.push thread.catalogView.nodes.root
|
||||||
$.add Index.root, nodes
|
$.add Index.root, nodes
|
||||||
if doc.contains Index.root
|
if doc.contains Index.root
|
||||||
|
|||||||
@ -18,7 +18,6 @@ class Thread
|
|||||||
|
|
||||||
@nodes =
|
@nodes =
|
||||||
root: null
|
root: null
|
||||||
placeholder: null
|
|
||||||
|
|
||||||
@board.threads.push @ID, @
|
@board.threads.push @ID, @
|
||||||
g.threads.push @fullID, @
|
g.threads.push @fullID, @
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user