From 70fd543073293166f6d31c639f5e33326a237349 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 15 Feb 2014 22:58:34 +0100 Subject: [PATCH] Hide the .page-num in archived posts. --- src/General/Get.coffee | 1 + src/General/Thread.coffee | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index d05651789..0490b8403 100644 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -233,5 +233,6 @@ Get = thread = g.threads["#{boardID}.#{threadID}"] or new Thread threadID, board post = new Post Build.post(o, true), thread, board, {isArchived: true} + $('.page-num', post.nodes.info).hidden = true Main.callbackNodes Post, [post] Get.insert post, root, context diff --git a/src/General/Thread.coffee b/src/General/Thread.coffee index 8a9df031f..1cdd9a957 100644 --- a/src/General/Thread.coffee +++ b/src/General/Thread.coffee @@ -16,7 +16,7 @@ class Thread g.threads[@fullID] = board.threads[@] = @ setPage: (pageNum) -> - icon = $ '.page-num', @OP.nodes.post + icon = $ '.page-num', @OP.nodes.info for key in ['title', 'textContent'] icon[key] = icon[key].replace /\d+/, pageNum @catalogView.nodes.pageCount.textContent = pageNum if @catalogView