This commit is contained in:
Nicolas Stepien 2013-04-17 23:10:52 +02:00
parent 382346f6de
commit f93b2dcbd5

View File

@ -2421,6 +2421,8 @@ Get =
OP.info.comment.replace(/\n+/g, ' // ') or
Conf['Anonymize'] and 'Anonymous' or
$('.nameBlock', OP.nodes.info).textContent.trim()
if excerpt.length > 70
excerpt = "#{excerpt[...67]}..."
"/#{thread.board}/ - #{excerpt}"
postFromRoot: (root) ->
link = $ 'a[title="Highlight this post"]', root
@ -3727,10 +3729,7 @@ ThreadExcerpt =
name: 'Thread Excerpt'
cb: @node
node: ->
d.title = if (excerpt = Get.threadExcerpt @).length > 80
"#{excerpt[...77]}..."
else
excerpt
d.title = Get.threadExcerpt @
Unread =
init: ->