More /f/-inapplicable keybinds.
This commit is contained in:
parent
19ed662208
commit
e8f17094fb
@ -84,7 +84,7 @@ Keybinds =
|
|||||||
return unless Conf['Thread Updater']
|
return unless Conf['Thread Updater']
|
||||||
ThreadUpdater.update()
|
ThreadUpdater.update()
|
||||||
when 'index'
|
when 'index'
|
||||||
return unless Conf['JSON Navigation']
|
return unless Conf['JSON Navigation'] and g.BOARD.ID isnt 'f'
|
||||||
Index.update()
|
Index.update()
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
@ -116,7 +116,7 @@ Keybinds =
|
|||||||
when Conf['Open front page']
|
when Conf['Open front page']
|
||||||
$.open "/#{g.BOARD}/"
|
$.open "/#{g.BOARD}/"
|
||||||
when Conf['Next page']
|
when Conf['Next page']
|
||||||
return unless g.VIEW is 'index'
|
return unless g.VIEW is 'index' and g.BOARD.ID isnt 'f'
|
||||||
if Conf['JSON Navigation']
|
if Conf['JSON Navigation']
|
||||||
return unless Conf['Index Mode'] in ['paged', 'infinite']
|
return unless Conf['Index Mode'] in ['paged', 'infinite']
|
||||||
$('.next button', Index.pagelist).click()
|
$('.next button', Index.pagelist).click()
|
||||||
@ -124,7 +124,7 @@ Keybinds =
|
|||||||
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 unless g.VIEW is 'index'
|
return unless g.VIEW is 'index' and g.BOARD.ID isnt 'f'
|
||||||
if Conf['JSON Navigation']
|
if Conf['JSON Navigation']
|
||||||
return unless Conf['Index Mode'] in ['paged', 'infinite']
|
return unless Conf['Index Mode'] in ['paged', 'infinite']
|
||||||
$('.prev button', Index.pagelist).click()
|
$('.prev button', Index.pagelist).click()
|
||||||
@ -132,7 +132,7 @@ Keybinds =
|
|||||||
if form = $ '.prev form'
|
if form = $ '.prev form'
|
||||||
window.location = form.action
|
window.location = form.action
|
||||||
when Conf['Search form']
|
when Conf['Search form']
|
||||||
return unless g.VIEW is 'index'
|
return unless g.VIEW is 'index' and g.BOARD.ID isnt 'f'
|
||||||
searchInput = if Conf['JSON Navigation'] then Index.searchInput else $.id('search-box')
|
searchInput = if Conf['JSON Navigation'] then Index.searchInput else $.id('search-box')
|
||||||
Header.scrollToIfNeeded searchInput
|
Header.scrollToIfNeeded searchInput
|
||||||
searchInput.focus()
|
searchInput.focus()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user