1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Added CSS class on links

This commit is contained in:
Nicolas Lœuillet 2016-11-16 09:17:12 +01:00
parent 10a1ffae53
commit 94f2057ffe
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2
8 changed files with 49 additions and 49 deletions

View file

@ -3,20 +3,20 @@ import $ from 'jquery';
/* Article view */
Mousetrap.bind('o', () => {
$('div#article_toolbar ul.links li:nth-child(2) a')[0].click();
$('div#article_toolbar ul.links a.original')[0].click();
});
/* mark as favorite */
Mousetrap.bind('s', () => {
$('div#article_toolbar ul.links li:nth-child(5) a')[0].click();
$('div#article_toolbar ul.links a.favorite')[0].click();
});
/* mark as read */
Mousetrap.bind('a', () => {
$('div#article_toolbar ul.links li:nth-child(4) a')[0].click();
$('div#article_toolbar ul.links a.markasread')[0].click();
});
/* delete */
Mousetrap.bind('del', () => {
$('div#article_toolbar ul.links li:nth-child(7) a')[0].click();
$('div#article_toolbar ul.links a.delete')[0].click();
});

View file

@ -3,20 +3,20 @@ import $ from 'jquery';
/* open original article */
Mousetrap.bind('o', () => {
$('ul.side-nav li:nth-child(2) a i')[0].click();
$('ul.side-nav a.original i')[0].click();
});
/* mark as favorite */
Mousetrap.bind('s', () => {
$('ul.side-nav li:nth-child(5) a i')[0].click();
$('ul.side-nav a.favorite i')[0].click();
});
/* mark as read */
Mousetrap.bind('a', () => {
$('ul.side-nav li:nth-child(4) a i')[0].click();
$('ul.side-nav a.markasread i')[0].click();
});
/* delete */
Mousetrap.bind('del', () => {
$('ul.side-nav li:nth-child(6) a i')[0].click();
$('ul.side-nav a.delete i')[0].click();
});