Fix indentation and next.focus() -> td.focus().
This commit is contained in:
parent
a1ed6c59b0
commit
afcc55b2c8
@ -1167,11 +1167,10 @@
|
||||
rect = td.getBoundingClientRect();
|
||||
if (rect.bottom >= 0 && rect.top <= d.body.clientHeight) {
|
||||
next = delta === +1 ? $.x('following::td[@class="reply"]', td) : $.x('preceding::td[@class="reply"]', td);
|
||||
}
|
||||
if (!next) {
|
||||
td.className = 'replyhl';
|
||||
td.tabIndex = 0;
|
||||
next.focus();
|
||||
td.focus();
|
||||
return;
|
||||
}
|
||||
if (!(g.REPLY || $.x('ancestor::div[@class="thread"]', next) === thread)) {
|
||||
@ -1186,6 +1185,7 @@
|
||||
next.focus();
|
||||
return;
|
||||
}
|
||||
}
|
||||
replies = $$('.reply', thread);
|
||||
if (delta === -1) replies.reverse();
|
||||
for (_i = 0, _len = replies.length; _i < _len; _i++) {
|
||||
|
||||
@ -957,7 +957,7 @@ Keybinds =
|
||||
unless next
|
||||
td.className = 'replyhl'
|
||||
td.tabIndex = 0
|
||||
next.focus()
|
||||
td.focus()
|
||||
return
|
||||
return unless g.REPLY or $.x('ancestor::div[@class="thread"]', next) is thread
|
||||
rect = next.getBoundingClientRect()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user