aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static/themes')
-rw-r--r--app/Resources/static/themes/baggy/js/shortcuts/entry.js8
-rw-r--r--app/Resources/static/themes/material/js/shortcuts/entry.js8
2 files changed, 8 insertions, 8 deletions
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/entry.js b/app/Resources/static/themes/baggy/js/shortcuts/entry.js
index 77d267a3..728df8bd 100644
--- a/app/Resources/static/themes/baggy/js/shortcuts/entry.js
+++ b/app/Resources/static/themes/baggy/js/shortcuts/entry.js
@@ -3,20 +3,20 @@ import $ from 'jquery';
3 3
4/* Article view */ 4/* Article view */
5Mousetrap.bind('o', () => { 5Mousetrap.bind('o', () => {
6 $('div#article_toolbar ul.links li:nth-child(2) a')[0].click(); 6 $('div#article_toolbar ul.links a.original')[0].click();
7}); 7});
8 8
9/* mark as favorite */ 9/* mark as favorite */
10Mousetrap.bind('s', () => { 10Mousetrap.bind('s', () => {
11 $('div#article_toolbar ul.links li:nth-child(5) a')[0].click(); 11 $('div#article_toolbar ul.links a.favorite')[0].click();
12}); 12});
13 13
14/* mark as read */ 14/* mark as read */
15Mousetrap.bind('a', () => { 15Mousetrap.bind('a', () => {
16 $('div#article_toolbar ul.links li:nth-child(4) a')[0].click(); 16 $('div#article_toolbar ul.links a.markasread')[0].click();
17}); 17});
18 18
19/* delete */ 19/* delete */
20Mousetrap.bind('del', () => { 20Mousetrap.bind('del', () => {
21 $('div#article_toolbar ul.links li:nth-child(7) a')[0].click(); 21 $('div#article_toolbar ul.links a.delete')[0].click();
22}); 22});
diff --git a/app/Resources/static/themes/material/js/shortcuts/entry.js b/app/Resources/static/themes/material/js/shortcuts/entry.js
index 674253b5..357c22fe 100644
--- a/app/Resources/static/themes/material/js/shortcuts/entry.js
+++ b/app/Resources/static/themes/material/js/shortcuts/entry.js
@@ -3,20 +3,20 @@ import $ from 'jquery';
3 3
4/* open original article */ 4/* open original article */
5Mousetrap.bind('o', () => { 5Mousetrap.bind('o', () => {
6 $('ul.side-nav li:nth-child(2) a i')[0].click(); 6 $('ul.side-nav a.original i')[0].click();
7}); 7});
8 8
9/* mark as favorite */ 9/* mark as favorite */
10Mousetrap.bind('s', () => { 10Mousetrap.bind('s', () => {
11 $('ul.side-nav li:nth-child(5) a i')[0].click(); 11 $('ul.side-nav a.favorite i')[0].click();
12}); 12});
13 13
14/* mark as read */ 14/* mark as read */
15Mousetrap.bind('a', () => { 15Mousetrap.bind('a', () => {
16 $('ul.side-nav li:nth-child(4) a i')[0].click(); 16 $('ul.side-nav a.markasread i')[0].click();
17}); 17});
18 18
19/* delete */ 19/* delete */
20Mousetrap.bind('del', () => { 20Mousetrap.bind('del', () => {
21 $('ul.side-nav li:nth-child(6) a i')[0].click(); 21 $('ul.side-nav a.delete i')[0].click();
22}); 22});