Fix forward links for Firefox. WTF is wrong with that browser, seriously.

This commit is contained in:
Nicolas Stepien 2011-11-26 18:53:27 +01:00
parent 3fa6bab8ed
commit f09bfa48e2
2 changed files with 2 additions and 2 deletions

View File

@ -2486,7 +2486,7 @@
qp.innerHTML = el.innerHTML;
if (conf['Quote Highlighting']) $.addClass(el, 'qphl');
if (/\bbacklink\b/.test(this.className)) {
replyID = $.x('preceding::input', this).name;
replyID = $.x('preceding-sibling::input', this.parentNode).name;
_ref = $$('.quotelink', qp);
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {

View File

@ -1936,7 +1936,7 @@ quotePreview =
qp.innerHTML = el.innerHTML
$.addClass el, 'qphl' if conf['Quote Highlighting']
if /\bbacklink\b/.test @className
replyID = $.x('preceding::input', @).name
replyID = $.x('preceding-sibling::input', @parentNode).name
for quote in $$ '.quotelink', qp
if quote.hash[1..] is replyID
quote.className = 'forwardlink'