actually fix next reply behavior

This commit is contained in:
James Campos 2011-06-26 18:44:45 -07:00
parent 661a141bfe
commit 0c5f516208
2 changed files with 2 additions and 2 deletions

View File

@ -910,7 +910,7 @@
rect = td.getBoundingClientRect();
if (rect.top > 0 && rect.bottom < d.body.clientHeight) {
next = $.x('following::td[@class="reply"]', td);
if ($.x('ancestor::div[@class="thread"]/div', next) !== thread) {
if ($.x('ancestor::div[@class="thread"]', next) !== thread) {
return;
}
rect = next.getBoundingClientRect();

View File

@ -659,7 +659,7 @@ keybinds =
rect = td.getBoundingClientRect()
if rect.top > 0 and rect.bottom < d.body.clientHeight #you're fully visible
next = $.x 'following::td[@class="reply"]', td
return if $.x('ancestor::div[@class="thread"]/div', next) isnt thread
return if $.x('ancestor::div[@class="thread"]', next) isnt thread
rect = next.getBoundingClientRect()
if rect.top > 0 and rect.bottom < d.body.clientHeight #and so is the next
next.className = 'replyhl'