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>.
|
For example: <code>highlight;</code> or <code>highlight:wallpaper;</code>.
|
||||||
</li>
|
</li>
|
||||||
<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>.
|
For example: <code>top:yes;</code> or <code>top:no;</code>.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@ -78,9 +78,11 @@ Keybinds =
|
|||||||
when Conf['Open front page']
|
when Conf['Open front page']
|
||||||
$.open "/#{g.BOARD}/#delform"
|
$.open "/#{g.BOARD}/#delform"
|
||||||
when Conf['Next page']
|
when Conf['Next page']
|
||||||
|
return if Conf['Index Mode'] isnt 'paged'
|
||||||
if form = $ '.next form'
|
if form = $ '.next form'
|
||||||
window.location = form.action
|
window.location = form.action
|
||||||
when Conf['Previous page']
|
when Conf['Previous page']
|
||||||
|
return if Conf['Index Mode'] isnt 'paged'
|
||||||
if form = $ '.prev form'
|
if form = $ '.prev form'
|
||||||
window.location = form.action
|
window.location = form.action
|
||||||
when Conf['Search form']
|
when Conf['Search form']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user