At least give me this!

This commit is contained in:
Zixaphir 2014-01-10 18:19:05 -07:00
parent bc9f094a77
commit 743810647d
3 changed files with 13 additions and 13 deletions

View File

@ -3003,11 +3003,11 @@
threadExcerpt: function(thread) {
var OP, excerpt, _ref;
OP = thread.OP;
excerpt = ((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || Conf['Anonymize'] && 'Anonymous' || $('.nameBlock', OP.nodes.info).textContent.trim();
if (excerpt.length > 70) {
excerpt = "" + excerpt.slice(0, 67) + "...";
excerpt = ("/" + thread.board + "/ - ") + (((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || Conf['Anonymize'] && 'Anonymous' || $('.nameBlock', OP.nodes.info).textContent.trim());
if (excerpt.length > 73) {
return "" + excerpt.slice(0, 70) + "...";
}
return "/" + thread.board + "/ - " + excerpt;
return excerpt;
},
threadFromRoot: function(root) {
return g.threads["" + g.BOARD + "." + root.id.slice(1)];

View File

@ -3013,11 +3013,11 @@
threadExcerpt: function(thread) {
var OP, excerpt, _ref;
OP = thread.OP;
excerpt = ((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || Conf['Anonymize'] && 'Anonymous' || $('.nameBlock', OP.nodes.info).textContent.trim();
if (excerpt.length > 70) {
excerpt = "" + excerpt.slice(0, 67) + "...";
excerpt = ("/" + thread.board + "/ - ") + (((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || Conf['Anonymize'] && 'Anonymous' || $('.nameBlock', OP.nodes.info).textContent.trim());
if (excerpt.length > 73) {
return "" + excerpt.slice(0, 70) + "...";
}
return "/" + thread.board + "/ - " + excerpt;
return excerpt;
},
threadFromRoot: function(root) {
return g.threads["" + g.BOARD + "." + root.id.slice(1)];

View File

@ -1,13 +1,13 @@
Get =
threadExcerpt: (thread) ->
{OP} = thread
excerpt = OP.info.subject?.trim() or
excerpt = "/#{thread.board}/ - " + (
OP.info.subject?.trim() or
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}"
$('.nameBlock', OP.nodes.info).textContent.trim())
return "#{excerpt[...70]}..." if excerpt.length > 73
excerpt
threadFromRoot: (root) ->
g.threads["#{g.BOARD}.#{root.id[1..]}"]
threadFromNode: (node) ->