From 9bf093cf3202450d0af1a483a431197a2c4e072e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 25 Jul 2017 23:11:36 -0700 Subject: [PATCH] Sticky icon on /f/ has different HTML; lacks stickyIcon class. --- src/General/Build/PostInfo.html | 4 ++-- src/classes/Post.coffee | 3 +++ src/classes/Thread.coffee | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/General/Build/PostInfo.html b/src/General/Build/PostInfo.html index a81283b31..9133a5e43 100644 --- a/src/General/Build/PostInfo.html +++ b/src/General/Build/PostInfo.html @@ -18,8 +18,8 @@ No. ${ID} - ?{o.isSticky}{ Sticky} - ?{o.isClosed && !o.isArchived}{ Closed} + ?{o.isSticky}{ Sticky} + ?{o.isClosed && !o.isArchived}{ Closed} ?{o.isArchived}{ Archived} ?{!o.isReply && g.VIEW === "index"}{   [Reply]} diff --git a/src/classes/Post.coffee b/src/classes/Post.coffee index a252fe0e7..8aecd9704 100644 --- a/src/classes/Post.coffee +++ b/src/classes/Post.coffee @@ -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 diff --git a/src/classes/Thread.coffee b/src/classes/Thread.coffee index 16b7ff1e8..d5e05d691 100644 --- a/src/classes/Thread.coffee +++ b/src/classes/Thread.coffee @@ -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