From faffa2d79297f0d59fc4a9784d5ba7b0ad6e6953 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 31 Jan 2014 17:35:28 +0100 Subject: [PATCH] Fix thread status updating for the catalog view. --- src/General/lib/catalogthread.class | 9 +++++---- src/General/lib/thread.class | 5 ++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/General/lib/catalogthread.class b/src/General/lib/catalogthread.class index f656d2123..2942a5eb6 100644 --- a/src/General/lib/catalogthread.class +++ b/src/General/lib/catalogthread.class @@ -7,8 +7,9 @@ class CatalogThread @board = @thread.board @nodes = root: root - thumb: $ '.thumb', root - postCount: $ '.post-count', root - fileCount: $ '.file-count', root - pageCount: $ '.page-count', root + thumb: $ '.thumb', root + icons: $ '.thread-icons', root + postCount: $ '.post-count', root + fileCount: $ '.file-count', root + pageCount: $ '.page-count', root @thread.catalogView = @ diff --git a/src/General/lib/thread.class b/src/General/lib/thread.class index c81218e2d..89cbe9bcd 100755 --- a/src/General/lib/thread.class +++ b/src/General/lib/thread.class @@ -34,7 +34,7 @@ class Thread typeLC = type.toLowerCase() unless status $.rm $ ".#{typeLC}Icon", @OP.nodes.info - $.rm $ ".#{typeLC}Icon", @catalogView if @catalogView + $.rm $ ".#{typeLC}Icon", @catalogView.nodes.icons if @catalogView return icon = $.el 'img', @@ -51,8 +51,7 @@ class Thread $.after root, [$.tn(' '), icon] return unless @catalogView - root = $ '.thread-icons', @catalogView - (if type is 'Sticky' and @isClosed then $.prepend else $.add) root, icon.cloneNode() + (if type is 'Sticky' and @isClosed then $.prepend else $.add) @catalogView.nodes.icons, icon.cloneNode() pin: -> @isOnTop = @isPinned = true