Disable next/previous page keybinds in non-paged mode.

This commit is contained in:
Mayhem 2013-10-30 03:10:30 +01:00
parent e012cc4d64
commit 6918d67d5d
2 changed files with 3 additions and 1 deletions

View File

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

View File

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