fix keybind conditions
This commit is contained in:
parent
b280b3d26a
commit
99e302eb0c
@ -103,7 +103,6 @@ Keybinds =
|
|||||||
# Board Navigation
|
# Board Navigation
|
||||||
when Conf['Front page']
|
when Conf['Front page']
|
||||||
if Conf['JSON Navigation'] and g.VIEW is 'index'
|
if Conf['JSON Navigation'] and g.VIEW is 'index'
|
||||||
return unless Conf['Index Mode'] is 'paged'
|
|
||||||
Index.userPageNav 1
|
Index.userPageNav 1
|
||||||
else
|
else
|
||||||
window.location = "/#{g.BOARD}/"
|
window.location = "/#{g.BOARD}/"
|
||||||
@ -112,7 +111,7 @@ Keybinds =
|
|||||||
when Conf['Next page']
|
when Conf['Next page']
|
||||||
return unless g.VIEW is 'index'
|
return unless g.VIEW is 'index'
|
||||||
if Conf['JSON Navigation']
|
if Conf['JSON Navigation']
|
||||||
return unless Conf['Index Mode'] is 'paged'
|
return unless Conf['Index Mode'] in ['paged', 'infinite']
|
||||||
$('.next button', Index.pagelist).click()
|
$('.next button', Index.pagelist).click()
|
||||||
else
|
else
|
||||||
if form = $ '.next form'
|
if form = $ '.next form'
|
||||||
@ -120,7 +119,7 @@ Keybinds =
|
|||||||
when Conf['Previous page']
|
when Conf['Previous page']
|
||||||
return unless g.VIEW is 'index'
|
return unless g.VIEW is 'index'
|
||||||
if Conf['JSON Navigation']
|
if Conf['JSON Navigation']
|
||||||
return unless Conf['Index Mode'] is 'paged'
|
return unless Conf['Index Mode'] in ['paged', 'infinite']
|
||||||
$('.prev button', Index.pagelist).click()
|
$('.prev button', Index.pagelist).click()
|
||||||
else
|
else
|
||||||
if form = $ '.prev form'
|
if form = $ '.prev form'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user