Fix Quotifier.

This commit is contained in:
Nicolas Stepien 2012-04-29 15:01:21 +02:00
parent def88abec6
commit 18ec912ec7
2 changed files with 2 additions and 2 deletions

View File

@ -3391,7 +3391,7 @@
nodes.push($.tn(text));
}
id = quote.match(/\d+$/)[0];
board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.quotejs', post.el).pathname.split('/')[1];
board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.postNum.desktop', post.el).firstElementChild.pathname.split('/')[1];
nodes.push(a = $.el('a', {
textContent: "" + quote + "\u00A0(Dead)"
}));

View File

@ -2629,7 +2629,7 @@ Quotify =
m[1]
else
# Get the post's board, whether it's inlined or not.
$('.quotejs', post.el).pathname.split('/')[1]
$('.postNum.desktop', post.el).firstElementChild.pathname.split('/')[1]
nodes.push a = $.el 'a',
# \u00A0 is nbsp