At least give me this!
This commit is contained in:
parent
bc9f094a77
commit
743810647d
@ -3003,11 +3003,11 @@
|
|||||||
threadExcerpt: function(thread) {
|
threadExcerpt: function(thread) {
|
||||||
var OP, excerpt, _ref;
|
var OP, excerpt, _ref;
|
||||||
OP = thread.OP;
|
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();
|
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 > 70) {
|
if (excerpt.length > 73) {
|
||||||
excerpt = "" + excerpt.slice(0, 67) + "...";
|
return "" + excerpt.slice(0, 70) + "...";
|
||||||
}
|
}
|
||||||
return "/" + thread.board + "/ - " + excerpt;
|
return excerpt;
|
||||||
},
|
},
|
||||||
threadFromRoot: function(root) {
|
threadFromRoot: function(root) {
|
||||||
return g.threads["" + g.BOARD + "." + root.id.slice(1)];
|
return g.threads["" + g.BOARD + "." + root.id.slice(1)];
|
||||||
|
|||||||
@ -3013,11 +3013,11 @@
|
|||||||
threadExcerpt: function(thread) {
|
threadExcerpt: function(thread) {
|
||||||
var OP, excerpt, _ref;
|
var OP, excerpt, _ref;
|
||||||
OP = thread.OP;
|
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();
|
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 > 70) {
|
if (excerpt.length > 73) {
|
||||||
excerpt = "" + excerpt.slice(0, 67) + "...";
|
return "" + excerpt.slice(0, 70) + "...";
|
||||||
}
|
}
|
||||||
return "/" + thread.board + "/ - " + excerpt;
|
return excerpt;
|
||||||
},
|
},
|
||||||
threadFromRoot: function(root) {
|
threadFromRoot: function(root) {
|
||||||
return g.threads["" + g.BOARD + "." + root.id.slice(1)];
|
return g.threads["" + g.BOARD + "." + root.id.slice(1)];
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
Get =
|
Get =
|
||||||
threadExcerpt: (thread) ->
|
threadExcerpt: (thread) ->
|
||||||
{OP} = thread
|
{OP} = thread
|
||||||
excerpt = OP.info.subject?.trim() or
|
excerpt = "/#{thread.board}/ - " + (
|
||||||
|
OP.info.subject?.trim() or
|
||||||
OP.info.comment.replace(/\n+/g, ' // ') or
|
OP.info.comment.replace(/\n+/g, ' // ') or
|
||||||
Conf['Anonymize'] and 'Anonymous' or
|
Conf['Anonymize'] and 'Anonymous' or
|
||||||
$('.nameBlock', OP.nodes.info).textContent.trim()
|
$('.nameBlock', OP.nodes.info).textContent.trim())
|
||||||
if excerpt.length > 70
|
return "#{excerpt[...70]}..." if excerpt.length > 73
|
||||||
excerpt = "#{excerpt[...67]}..."
|
excerpt
|
||||||
"/#{thread.board}/ - #{excerpt}"
|
|
||||||
threadFromRoot: (root) ->
|
threadFromRoot: (root) ->
|
||||||
g.threads["#{g.BOARD}.#{root.id[1..]}"]
|
g.threads["#{g.BOARD}.#{root.id[1..]}"]
|
||||||
threadFromNode: (node) ->
|
threadFromNode: (node) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user