I'm such a baka.
This commit is contained in:
parent
7e2061cd3d
commit
7c3fd1232c
@ -4276,7 +4276,7 @@
|
|||||||
return post.nodes.comment = post.nodes.shortComment;
|
return post.nodes.comment = post.nodes.shortComment;
|
||||||
},
|
},
|
||||||
parse: function(req, a, post) {
|
parse: function(req, a, post) {
|
||||||
var clone, href, postObj, posts, quote, spoilerRange, _i, _j, _len, _len1, _ref;
|
var clone, comment, href, postObj, posts, quote, spoilerRange, _i, _j, _len, _len1, _ref;
|
||||||
if (req.status !== 200) {
|
if (req.status !== 200) {
|
||||||
a.textContent = "Error " + req.statusText + " (" + req.status + ")";
|
a.textContent = "Error " + req.statusText + " (" + req.status + ")";
|
||||||
return;
|
return;
|
||||||
@ -4295,7 +4295,8 @@
|
|||||||
a.textContent = "Post No." + post + " not found.";
|
a.textContent = "Post No." + post + " not found.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
clone = post.nodes.comment.cloneNode(false);
|
comment = post.nodes.comment;
|
||||||
|
clone = comment.cloneNode(false);
|
||||||
clone.innerHTML = postObj.com;
|
clone.innerHTML = postObj.com;
|
||||||
_ref = $$('.quotelink', clone);
|
_ref = $$('.quotelink', clone);
|
||||||
for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) {
|
for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) {
|
||||||
@ -4306,6 +4307,9 @@
|
|||||||
}
|
}
|
||||||
quote.href = "/" + post.board + "/res/" + href;
|
quote.href = "/" + post.board + "/res/" + href;
|
||||||
}
|
}
|
||||||
|
post.nodes.shortComment = comment;
|
||||||
|
$.replace(comment, clone);
|
||||||
|
post.nodes.comment = post.nodes.longComment = clone;
|
||||||
post.parseComment();
|
post.parseComment();
|
||||||
post.parseQuotes();
|
post.parseQuotes();
|
||||||
if (Conf['Resurrect Quotes']) {
|
if (Conf['Resurrect Quotes']) {
|
||||||
@ -4321,11 +4325,8 @@
|
|||||||
QuoteOP.node.call(post);
|
QuoteOP.node.call(post);
|
||||||
}
|
}
|
||||||
if (Conf['Mark Cross-thread Quotes']) {
|
if (Conf['Mark Cross-thread Quotes']) {
|
||||||
QuoteCT.node.call(post);
|
return QuoteCT.node.call(post);
|
||||||
}
|
}
|
||||||
post.nodes.shortComment = post.nodes.comment;
|
|
||||||
$.replace(post.nodes.comment, clone);
|
|
||||||
return post.nodes.comment = post.nodes.longComment = clone;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -151,7 +151,7 @@ Config =
|
|||||||
# Thread Navigation
|
# Thread Navigation
|
||||||
'Next thread': ['Down', 'See next thread.']
|
'Next thread': ['Down', 'See next thread.']
|
||||||
'Previous thread': ['Up', 'See previous thread.']
|
'Previous thread': ['Up', 'See previous thread.']
|
||||||
'Expand thread': ['Ctrl+e', 'Expand thread.']
|
'Expand thread': ['Ctrl+e', 'Expand thread.']
|
||||||
'Open thread': ['o', 'Open thread in current tab.']
|
'Open thread': ['o', 'Open thread in current tab.']
|
||||||
'Open thread tab': ['Shift+o', 'Open thread in new tab.']
|
'Open thread tab': ['Shift+o', 'Open thread in new tab.']
|
||||||
# Reply Navigation
|
# Reply Navigation
|
||||||
|
|||||||
@ -2704,12 +2704,16 @@ ExpandComment =
|
|||||||
a.textContent = "Post No.#{post} not found."
|
a.textContent = "Post No.#{post} not found."
|
||||||
return
|
return
|
||||||
|
|
||||||
clone = post.nodes.comment.cloneNode false
|
{comment} = post.nodes
|
||||||
|
clone = comment.cloneNode false
|
||||||
clone.innerHTML = postObj.com
|
clone.innerHTML = postObj.com
|
||||||
for quote in $$ '.quotelink', clone
|
for quote in $$ '.quotelink', clone
|
||||||
href = quote.getAttribute 'href'
|
href = quote.getAttribute 'href'
|
||||||
continue if href[0] is '/' # Cross-board quote, or board link
|
continue if href[0] is '/' # Cross-board quote, or board link
|
||||||
quote.href = "/#{post.board}/res/#{href}" # Fix pathnames
|
quote.href = "/#{post.board}/res/#{href}" # Fix pathnames
|
||||||
|
post.nodes.shortComment = comment
|
||||||
|
$.replace comment, clone
|
||||||
|
post.nodes.comment = post.nodes.longComment = clone
|
||||||
post.parseComment()
|
post.parseComment()
|
||||||
post.parseQuotes()
|
post.parseQuotes()
|
||||||
if Conf['Resurrect Quotes']
|
if Conf['Resurrect Quotes']
|
||||||
@ -2724,9 +2728,6 @@ ExpandComment =
|
|||||||
QuoteCT.node.call post
|
QuoteCT.node.call post
|
||||||
# XXX g code
|
# XXX g code
|
||||||
# XXX sci math
|
# XXX sci math
|
||||||
post.nodes.shortComment = post.nodes.comment
|
|
||||||
$.replace post.nodes.comment, clone
|
|
||||||
post.nodes.comment = post.nodes.longComment = clone
|
|
||||||
|
|
||||||
ExpandThread =
|
ExpandThread =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user