Fix forwardlink for inlined backlinks. Close #164

This commit is contained in:
Nicolas Stepien 2011-06-02 00:43:31 +02:00
parent 70296d1f85
commit 31699d5fa2
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