Fix thread status icon adding in original index.
Don't depend on page number. Also added retina CSS class as in 4chan.
This commit is contained in:
parent
765a7ccd1d
commit
724fc03ad5
@ -30,13 +30,11 @@ class Thread
|
||||
src: "//s.4cdn.org/image/#{typeLC}#{if window.devicePixelRatio >= 2 then '@2x' else ''}.gif"
|
||||
alt: type
|
||||
title: type
|
||||
className: "#{typeLC}Icon"
|
||||
className: "#{typeLC}Icon retina"
|
||||
root = if type is 'Closed' and @isSticky
|
||||
$ '.stickyIcon', @OP.nodes.info
|
||||
else if g.VIEW is 'index'
|
||||
$ '.page-num', @OP.nodes.info
|
||||
else
|
||||
$ '[title="Reply to this post"]', @OP.nodes.info
|
||||
$('.page-num', @OP.nodes.info) or $('[title="Reply to this post"]', @OP.nodes.info)
|
||||
$.after root, [$.tn(' '), icon]
|
||||
|
||||
kill: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user