Fix page number interaction with thread icons. #849

This commit is contained in:
ccd0 2016-04-28 10:40:22 -07:00
parent 9e5ccf155d
commit c11054098e
2 changed files with 3 additions and 6 deletions

View File

@ -21,10 +21,10 @@ class Thread
g.threads.push @fullID, @
setPage: (pageNum) ->
{info, quote} = @OP.nodes
unless icon = $ '.page-num', info
{info, reply} = @OP.nodes
unless (icon = $ '.page-num', info)
icon = $.el 'span', className: 'page-num'
$.after quote, [$.tn(' '), icon]
$.replace reply.parentNode.previousSibling, [$.tn(' '), icon, $.tn(' ')]
icon.title = "This thread is on page #{pageNum} in the original index."
icon.textContent = "[#{pageNum}]"
@catalogView.nodes.pageCount.textContent = pageNum if @catalogView

View File

@ -89,9 +89,6 @@ body.hasDropDownNav{
[hidden] {
display: none !important;
}
.page-num {
margin-right: -8px;
}
.fileText a {
unicode-bidi: -moz-isolate;
unicode-bidi: -webkit-isolate;