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