Merge pull request #169 from MayhemYDG/fixb

Fix forwardlink for inlined backlinks. Close #164
This commit is contained in:
James Campos 2011-06-01 15:46:28 -07:00
commit 79be2181fd
2 changed files with 2 additions and 2 deletions

View File

@ -1901,7 +1901,7 @@
if ($.config('Quote Highlighting')) {
$.addClass(el, 'qphl');
}
if (this.className === 'backlink') {
if (/backlink/.test(this.className)) {
replyID = $.x('ancestor::*[@id][1]', this).id.match(/\d+/)[0];
_ref = $$('a.quotelink', qp);
for (_i = 0, _len = _ref.length; _i < _len; _i++) {

View File

@ -1492,7 +1492,7 @@ quotePreview =
if el = d.getElementById id
qp.innerHTML = el.innerHTML
$.addClass el, 'qphl' if $.config 'Quote Highlighting'
if @className is 'backlink'
if /backlink/.test @className
replyID = $.x('ancestor::*[@id][1]', @).id.match(/\d+/)[0]
for quote in $$ 'a.quotelink', qp
if quote.hash[1..] is replyID