Support party hats.
This commit is contained in:
parent
74cff28c53
commit
9e4d2b6f01
@ -94,7 +94,12 @@ Index =
|
|||||||
$.on @selectSort, 'change', @cb.sort
|
$.on @selectSort, 'change', @cb.sort
|
||||||
|
|
||||||
@update()
|
@update()
|
||||||
$.asap (-> $('.board', doc) or d.readyState isnt 'loading'), ->
|
$.asap (-> $('.board > .thread > .postContainer', doc) or d.readyState isnt 'loading'), ->
|
||||||
|
Index.hat = $ '.board > .thread > img:first-child'
|
||||||
|
if Index.hat and Index.nodes
|
||||||
|
for threadRoot in Index.nodes
|
||||||
|
$.prepend threadRoot, Index.hat.cloneNode false
|
||||||
|
|
||||||
board = $ '.board'
|
board = $ '.board'
|
||||||
$.replace board, Index.root
|
$.replace board, Index.root
|
||||||
$.event 'PostsInserted'
|
$.event 'PostsInserted'
|
||||||
@ -443,6 +448,7 @@ Index =
|
|||||||
for threadData, i in Index.liveThreadData
|
for threadData, i in Index.liveThreadData
|
||||||
try
|
try
|
||||||
threadRoot = Build.thread g.BOARD, threadData
|
threadRoot = Build.thread g.BOARD, threadData
|
||||||
|
$.prepend threadRoot, Index.hat.cloneNode false if Index.hat
|
||||||
if thread = g.BOARD.threads[threadData.no]
|
if thread = g.BOARD.threads[threadData.no]
|
||||||
thread.setCount 'post', threadData.replies + 1, threadData.bumplimit
|
thread.setCount 'post', threadData.replies + 1, threadData.bumplimit
|
||||||
thread.setCount 'file', threadData.images + !!threadData.ext, threadData.imagelimit
|
thread.setCount 'file', threadData.images + !!threadData.ext, threadData.imagelimit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user