From 724fc03ad574fc1923abb747f1a8d7a6e48dbcf3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 14 Sep 2014 00:25:27 -0700 Subject: [PATCH] Fix thread status icon adding in original index. Don't depend on page number. Also added retina CSS class as in 4chan. --- src/General/lib/thread.class | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/General/lib/thread.class b/src/General/lib/thread.class index ea17b1e1e..49538bd12 100755 --- a/src/General/lib/thread.class +++ b/src/General/lib/thread.class @@ -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: ->