Add filter-highlight to threads on the catalog.

This commit is contained in:
Mayhem 2014-01-26 18:19:23 +01:00
parent bdf2b4a6ba
commit 7623040593
3 changed files with 7 additions and 0 deletions

View File

@ -420,6 +420,7 @@ a[href="javascript:;"] {
.thumb {
max-width: 150px;
max-height: 150px;
border-radius: 2px;
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
}
.thunb.spoiler-file {
@ -648,6 +649,9 @@ a.hide-announcement {
.filter-highlight > .reply {
box-shadow: -5px 0 rgba(255, 0, 0, .5);
}
.filter-highlight .thumb {
border: 2px solid rgba(255, 0, 0, .5);
}
/* Thread & Reply Hiding */
.hide-thread-button,

View File

@ -110,6 +110,7 @@ Filter =
# Highlight
$.addClass @nodes.root, result.class
@thread.highlight = result.class
if !@isReply and result.top
@thread.isOnTop = true

View File

@ -297,6 +297,8 @@ Build =
className: 'catalog-thread'
innerHTML: <%= importHTML('General/Thread-catalog-view') %>
$.addClass root, thread.highlight if thread.highlight
if thread.isSticky
$.add $('.thread-icons', root), $.el 'img',
src: "#{staticPath}sticky#{gifIcon}"