Fix Quotifying to exising posts.

This commit is contained in:
Nicolas Stepien 2012-05-16 14:46:11 +02:00
parent df69a3bacb
commit e32148fc5f
2 changed files with 2 additions and 2 deletions

View File

@ -3339,7 +3339,7 @@
nodes.push(a = $.el('a', { nodes.push(a = $.el('a', {
textContent: "" + quote + "\u00A0(Dead)" textContent: "" + quote + "\u00A0(Dead)"
})); }));
if (board === g.BOARD && $.id(id)) { if (board === g.BOARD && $.id("#p" + id)) {
a.href = "#p" + id; a.href = "#p" + id;
a.className = 'quotelink'; a.className = 'quotelink';
a.setAttribute('onclick', "replyhl('" + id + "');"); a.setAttribute('onclick', "replyhl('" + id + "');");

View File

@ -2541,7 +2541,7 @@ Quotify =
# \u00A0 is nbsp # \u00A0 is nbsp
textContent: "#{quote}\u00A0(Dead)" textContent: "#{quote}\u00A0(Dead)"
if board is g.BOARD and $.id id if board is g.BOARD and $.id "#p#{id}"
a.href = "#p#{id}" a.href = "#p#{id}"
a.className = 'quotelink' a.className = 'quotelink'
a.setAttribute 'onclick', "replyhl('#{id}');" a.setAttribute 'onclick', "replyhl('#{id}');"