Add keybind for catalog
This commit is contained in:
parent
b5318ae864
commit
07848a0b7b
@ -189,6 +189,7 @@
|
|||||||
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
|
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
|
||||||
'Next page': ['Right', 'Jump to the next page.'],
|
'Next page': ['Right', 'Jump to the next page.'],
|
||||||
'Previous page': ['Left', 'Jump to the previous page.'],
|
'Previous page': ['Left', 'Jump to the previous page.'],
|
||||||
|
'Open catalog': ['Shift+c', 'Open the catalog of the current board'],
|
||||||
'Next thread': ['Down', 'See next thread.'],
|
'Next thread': ['Down', 'See next thread.'],
|
||||||
'Previous thread': ['Up', 'See previous thread.'],
|
'Previous thread': ['Up', 'See previous thread.'],
|
||||||
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
||||||
@ -5069,6 +5070,13 @@
|
|||||||
window.location = form.action;
|
window.location = form.action;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case Conf['Open catalog']:
|
||||||
|
if (Conf['External Catalog']) {
|
||||||
|
window.location = CatalogLinks.external(g.BOARD.ID);
|
||||||
|
} else {
|
||||||
|
window.location = "/" + g.BOARD + "/catalog";
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Conf['Next thread']:
|
case Conf['Next thread']:
|
||||||
if (g.VIEW === 'thread') {
|
if (g.VIEW === 'thread') {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -190,6 +190,7 @@
|
|||||||
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
|
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
|
||||||
'Next page': ['Right', 'Jump to the next page.'],
|
'Next page': ['Right', 'Jump to the next page.'],
|
||||||
'Previous page': ['Left', 'Jump to the previous page.'],
|
'Previous page': ['Left', 'Jump to the previous page.'],
|
||||||
|
'Open catalog': ['Shift+c', 'Open the catalog of the current board'],
|
||||||
'Next thread': ['Down', 'See next thread.'],
|
'Next thread': ['Down', 'See next thread.'],
|
||||||
'Previous thread': ['Up', 'See previous thread.'],
|
'Previous thread': ['Up', 'See previous thread.'],
|
||||||
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
||||||
@ -5060,6 +5061,13 @@
|
|||||||
window.location = form.action;
|
window.location = form.action;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case Conf['Open catalog']:
|
||||||
|
if (Conf['External Catalog']) {
|
||||||
|
window.location = CatalogLinks.external(g.BOARD.ID);
|
||||||
|
} else {
|
||||||
|
window.location = "/" + g.BOARD + "/catalog";
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Conf['Next thread']:
|
case Conf['Next thread']:
|
||||||
if (g.VIEW === 'thread') {
|
if (g.VIEW === 'thread') {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -146,6 +146,7 @@
|
|||||||
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
|
'Open front page': ['Shift+0', 'Open page 0 in a new tab.'],
|
||||||
'Next page': ['Right', 'Jump to the next page.'],
|
'Next page': ['Right', 'Jump to the next page.'],
|
||||||
'Previous page': ['Left', 'Jump to the previous page.'],
|
'Previous page': ['Left', 'Jump to the previous page.'],
|
||||||
|
'Open catalog': ['Shift+c', 'Open the catalog of the current board'],
|
||||||
'Next thread': ['Down', 'See next thread.'],
|
'Next thread': ['Down', 'See next thread.'],
|
||||||
'Previous thread': ['Up', 'See previous thread.'],
|
'Previous thread': ['Up', 'See previous thread.'],
|
||||||
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
'Expand thread': ['Ctrl+e', 'Expand thread.'],
|
||||||
@ -4983,6 +4984,13 @@
|
|||||||
window.location = form.action;
|
window.location = form.action;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case Conf['Open catalog']:
|
||||||
|
if (Conf['External Catalog']) {
|
||||||
|
window.location = CatalogLinks.external(g.BOARD.ID);
|
||||||
|
} else {
|
||||||
|
window.location = "/" + g.BOARD + "/catalog";
|
||||||
|
}
|
||||||
|
break;
|
||||||
case Conf['Next thread']:
|
case Conf['Next thread']:
|
||||||
if (g.VIEW === 'thread') {
|
if (g.VIEW === 'thread') {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -489,6 +489,10 @@ http://iqdb.org/?url=%TURL
|
|||||||
'Left'
|
'Left'
|
||||||
'Jump to the previous page.'
|
'Jump to the previous page.'
|
||||||
]
|
]
|
||||||
|
'Open catalog': [
|
||||||
|
'Shift+c'
|
||||||
|
'Open the catalog of the current board'
|
||||||
|
]
|
||||||
# Thread Navigation
|
# Thread Navigation
|
||||||
'Next thread': [
|
'Next thread': [
|
||||||
'Down'
|
'Down'
|
||||||
|
|||||||
@ -77,6 +77,11 @@ Keybinds =
|
|||||||
when Conf['Previous page']
|
when Conf['Previous page']
|
||||||
if form = $ '.prev form'
|
if form = $ '.prev form'
|
||||||
window.location = form.action
|
window.location = form.action
|
||||||
|
when Conf['Open catalog']
|
||||||
|
if Conf['External Catalog']
|
||||||
|
window.location = CatalogLinks.external(g.BOARD.ID)
|
||||||
|
else
|
||||||
|
window.location = "/#{g.BOARD}/catalog"
|
||||||
# Thread Navigation
|
# Thread Navigation
|
||||||
when Conf['Next thread']
|
when Conf['Next thread']
|
||||||
return if g.VIEW is 'thread'
|
return if g.VIEW is 'thread'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user