fix WerkTyme after thumb class revert

This commit is contained in:
ccd0 2014-09-16 11:33:13 -07:00
parent 8bff3530d5
commit 98292d76f9
3 changed files with 13 additions and 8 deletions

View File

@ -182,10 +182,10 @@ Index =
return unless Index.db.get {boardID: @board.ID, threadID: @ID}
@pin()
catalogNode: ->
$.on @nodes.thumb, 'click', Index.onClick
$.on @nodes.thumb.parentNode, 'click', Index.onClick
onClick: (e) ->
return if e.button isnt 0
thread = g.threads[@parentNode.parentNode.dataset.fullID]
thread = g.threads[@parentNode.dataset.fullID]
if e.shiftKey
Index.toggleHide thread
else if e.altKey

View File

@ -834,16 +834,18 @@ span.hide-announcement {
}
/* Werk Tyme */
:root.werkTyme .postContainer:not(.noFile) .fileThumb,
.werkTyme .thumb > img,
:root:not(.werkTyme) .thumb > span {
:root.werkTyme .thumb:not(.deleted-file):not(.no-file),
:root:not(.werkTyme) .werkTyme-filename {
display: none;
}
.werkTyme .thumb {
.werkTyme-filename {
font-weight: bold;
}
:root.werkTyme .catalog-thread > a {
text-align: center;
}
.werkTyme .pinned .thumb,
.werkTyme .filter-highlight .thumb {
.pinned .werkTyme-filename,
.filter-highlight .werkTyme-filename {
border: 2px solid rgba(255, 0, 0, .5);
}

View File

@ -31,7 +31,10 @@ FappeTyme =
catalogNode: ->
{file} = @thread.OP
return if !file
$.add @nodes.thumb, $.el('span', textContent: file.name)
span = $.el 'span',
textContent: file.name
className: 'werkTyme-filename'
$.add @nodes.thumb.parentNode, span
cb:
set: (type) ->