This commit is contained in:
Nicolas Stepien 2012-11-29 13:09:29 +01:00
parent f27bd8aa95
commit 199ca9d01f
3 changed files with 11 additions and 9 deletions

View File

@ -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:

View File

@ -1,4 +1,6 @@
master
- Mayhem
Fix next/previous page keybinds.
2.36.2
- noface

View File

@ -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