Disable next/previous page keybinds in non-paged mode.
This commit is contained in:
parent
e012cc4d64
commit
6918d67d5d
@ -23,7 +23,7 @@
|
||||
For example: <code>highlight;</code> or <code>highlight:wallpaper;</code>.
|
||||
</li>
|
||||
<li>
|
||||
Highlighted OPs will have their threads put on top of board pages by default.<br>
|
||||
Highlighted OPs will have their threads put on top of the board index by default.<br>
|
||||
For example: <code>top:yes;</code> or <code>top:no;</code>.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -78,9 +78,11 @@ Keybinds =
|
||||
when Conf['Open front page']
|
||||
$.open "/#{g.BOARD}/#delform"
|
||||
when Conf['Next page']
|
||||
return if Conf['Index Mode'] isnt 'paged'
|
||||
if form = $ '.next form'
|
||||
window.location = form.action
|
||||
when Conf['Previous page']
|
||||
return if Conf['Index Mode'] isnt 'paged'
|
||||
if form = $ '.prev form'
|
||||
window.location = form.action
|
||||
when Conf['Search form']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user