Merge pull request #169 from MayhemYDG/fixb
Fix forwardlink for inlined backlinks. Close #164
This commit is contained in:
commit
79be2181fd
@ -1901,7 +1901,7 @@
|
|||||||
if ($.config('Quote Highlighting')) {
|
if ($.config('Quote Highlighting')) {
|
||||||
$.addClass(el, 'qphl');
|
$.addClass(el, 'qphl');
|
||||||
}
|
}
|
||||||
if (this.className === 'backlink') {
|
if (/backlink/.test(this.className)) {
|
||||||
replyID = $.x('ancestor::*[@id][1]', this).id.match(/\d+/)[0];
|
replyID = $.x('ancestor::*[@id][1]', this).id.match(/\d+/)[0];
|
||||||
_ref = $$('a.quotelink', qp);
|
_ref = $$('a.quotelink', qp);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
|
|||||||
@ -1492,7 +1492,7 @@ quotePreview =
|
|||||||
if el = d.getElementById id
|
if el = d.getElementById id
|
||||||
qp.innerHTML = el.innerHTML
|
qp.innerHTML = el.innerHTML
|
||||||
$.addClass el, 'qphl' if $.config 'Quote Highlighting'
|
$.addClass el, 'qphl' if $.config 'Quote Highlighting'
|
||||||
if @className is 'backlink'
|
if /backlink/.test @className
|
||||||
replyID = $.x('ancestor::*[@id][1]', @).id.match(/\d+/)[0]
|
replyID = $.x('ancestor::*[@id][1]', @).id.match(/\d+/)[0]
|
||||||
for quote in $$ 'a.quotelink', qp
|
for quote in $$ 'a.quotelink', qp
|
||||||
if quote.hash[1..] is replyID
|
if quote.hash[1..] is replyID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user