forked from wallabag/wallabag
Bring navigation (with right, left and enter) on material entries page. Supports going to next and previous page !
Also better indentation for js files (changed editorconfig for them). Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@ -1,19 +1,22 @@
|
||||
import Mousetrap from 'mousetrap';
|
||||
import $ from 'jquery';
|
||||
|
||||
/* open original article */
|
||||
Mousetrap.bind('o', () => {
|
||||
$('ul.side-nav li:nth-child(2) a i')[0].click();
|
||||
$('ul.side-nav li:nth-child(2) a i')[0].click();
|
||||
});
|
||||
|
||||
/* mark as favorite */
|
||||
Mousetrap.bind('s', () => {
|
||||
$('ul.side-nav li:nth-child(5) a i')[0].click();
|
||||
$('ul.side-nav li:nth-child(5) a i')[0].click();
|
||||
});
|
||||
|
||||
/* mark as read */
|
||||
Mousetrap.bind('a', () => {
|
||||
$('ul.side-nav li:nth-child(4) a i')[0].click();
|
||||
$('ul.side-nav li:nth-child(4) a i')[0].click();
|
||||
});
|
||||
|
||||
/* delete */
|
||||
Mousetrap.bind('del', () => {
|
||||
$('ul.side-nav li:nth-child(6) a i')[0].click();
|
||||
$('ul.side-nav li:nth-child(6) a i')[0].click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user