Hide the .page-num in archived posts.

This commit is contained in:
Mayhem 2014-02-15 22:58:34 +01:00
parent 8e423493ac
commit 70fd543073
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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