Index: Replace $.asap with $.onExists.
This commit is contained in:
parent
e97a0b8d63
commit
3f2dfd9333
@ -95,11 +95,10 @@ Index =
|
|||||||
|
|
||||||
@update()
|
@update()
|
||||||
|
|
||||||
$.asap (-> $('title + *', doc) or d.readyState isnt 'loading'), ->
|
$.onExists doc, 'title + *', true, ->
|
||||||
d.title = d.title.replace /\ -\ Page\ \d+/, ''
|
d.title = d.title.replace /\ -\ Page\ \d+/, ''
|
||||||
|
|
||||||
$.asap (-> $('.board > .thread > .postContainer', doc) or d.readyState isnt 'loading'), ->
|
$.onExists doc, '.board > .thread > .postContainer, .board + *', true, ->
|
||||||
return unless Main.isThisPageLegit()
|
|
||||||
Index.hat = $ '.board > .thread > img:first-child'
|
Index.hat = $ '.board > .thread > img:first-child'
|
||||||
if Index.hat and Index.nodes
|
if Index.hat and Index.nodes
|
||||||
for threadRoot in Index.nodes
|
for threadRoot in Index.nodes
|
||||||
@ -123,8 +122,7 @@ Index =
|
|||||||
$.before topNavPos, $.el 'hr'
|
$.before topNavPos, $.el 'hr'
|
||||||
$.before topNavPos, Index.navLinks
|
$.before topNavPos, Index.navLinks
|
||||||
|
|
||||||
$.asap (-> $('.pagelist', doc) or d.readyState isnt 'loading'), ->
|
Main.ready ->
|
||||||
return unless Main.isThisPageLegit()
|
|
||||||
if pagelist = $('.pagelist')
|
if pagelist = $('.pagelist')
|
||||||
$.replace pagelist, Index.pagelist
|
$.replace pagelist, Index.pagelist
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user