Sticky icon on /f/ has different HTML; lacks stickyIcon class.
This commit is contained in:
parent
280ed3474a
commit
9bf093cf32
@ -18,8 +18,8 @@
|
||||
<span class="postNum?{!(boardID === "f" && !o.isReply)}{ desktop}">
|
||||
<a href="${postLink}" title="Link to this post">No.</a>
|
||||
<a href="${quoteLink}" title="Reply to this post">${ID}</a>
|
||||
?{o.isSticky}{ <img src="${staticPath}sticky${gifIcon}" alt="Sticky" title="Sticky" class="stickyIcon retina">}
|
||||
?{o.isClosed && !o.isArchived}{ <img src="${staticPath}closed${gifIcon}" alt="Closed" title="Closed" class="closedIcon retina">}
|
||||
?{o.isSticky}{ <img src="${staticPath}sticky${gifIcon}" alt="Sticky" title="Sticky"?{boardID === "f"}{ style="height: 18px; width: 18px;"}{ class="stickyIcon retina"}>}
|
||||
?{o.isClosed && !o.isArchived}{ <img src="${staticPath}closed${gifIcon}" alt="Closed" title="Closed"?{boardID === "f"}{ style="height: 18px; width: 18px;"}{ class="closedIcon retina"}>}
|
||||
?{o.isArchived}{ <img src="${staticPath}archived${gifIcon}" alt="Archived" title="Archived" class="archivedIcon retina">}
|
||||
?{!o.isReply && g.VIEW === "index"}{ <span>[<a href="/${boardID}/thread/${threadID}" class="replylink">Reply</a>]</span>}
|
||||
</span>
|
||||
|
||||
@ -18,6 +18,9 @@ class Post
|
||||
|
||||
if not (@isReply = $.hasClass @nodes.post, 'reply')
|
||||
@thread.OP = @
|
||||
if @boardID is 'f'
|
||||
for type in ['Sticky', 'Closed'] when (icon = $ "img[alt=#{type}]", @nodes.info)
|
||||
$.addClass icon, "#{type.toLowerCase()}Icon", 'retina'
|
||||
@thread.isArchived = !!$ '.archivedIcon', @nodes.info
|
||||
@thread.isSticky = !!$ '.stickyIcon', @nodes.info
|
||||
@thread.isClosed = @thread.isArchived or !!$ '.closedIcon', @nodes.info
|
||||
|
||||
@ -62,6 +62,8 @@ class Thread
|
||||
alt: type
|
||||
title: type
|
||||
className: "#{typeLC}Icon retina"
|
||||
if g.BOARD.ID is 'f'
|
||||
icon.style.cssText = 'height: 18px; width: 18px;'
|
||||
|
||||
root = if type isnt 'Sticky' and @isSticky
|
||||
$ '.stickyIcon', @OP.nodes.info
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user