Fix #827
This commit is contained in:
parent
f27bd8aa95
commit
199ca9d01f
@ -1388,7 +1388,7 @@
|
||||
return $.on(d, 'keydown', Keybinds.keydown);
|
||||
},
|
||||
keydown: function(e) {
|
||||
var key, link, o, target, thread;
|
||||
var form, key, o, target, thread;
|
||||
if (!(key = Keybinds.keyCode(e))) {
|
||||
return;
|
||||
}
|
||||
@ -1455,13 +1455,13 @@
|
||||
window.location = "/" + g.BOARD + "/0#delform";
|
||||
break;
|
||||
case Conf.nextPage:
|
||||
if (link = $('link[rel=next]', d.head)) {
|
||||
window.location = link.href;
|
||||
if (form = $('.next form')) {
|
||||
window.location = form.action;
|
||||
}
|
||||
break;
|
||||
case Conf.previousPage:
|
||||
if (link = $('link[rel=prev]', d.head)) {
|
||||
window.location.href = link.href;
|
||||
if (form = $('.prev form')) {
|
||||
window.location = form.action;
|
||||
}
|
||||
break;
|
||||
case Conf.nextThread:
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
master
|
||||
- Mayhem
|
||||
Fix next/previous page keybinds.
|
||||
|
||||
2.36.2
|
||||
- noface
|
||||
|
||||
@ -1151,11 +1151,11 @@ Keybinds =
|
||||
when Conf.zero
|
||||
window.location = "/#{g.BOARD}/0#delform"
|
||||
when Conf.nextPage
|
||||
if link = $ 'link[rel=next]', d.head
|
||||
window.location = link.href
|
||||
if form = $ '.next form'
|
||||
window.location = form.action
|
||||
when Conf.previousPage
|
||||
if link = $ 'link[rel=prev]', d.head
|
||||
window.location.href = link.href
|
||||
if form = $ '.prev form'
|
||||
window.location = form.action
|
||||
# Thread Navigation
|
||||
when Conf.nextThread
|
||||
return if g.REPLY
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user