aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/baggy
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static/themes/baggy')
-rwxr-xr-xapp/Resources/static/themes/baggy/js/init.js12
-rw-r--r--app/Resources/static/themes/baggy/js/shortcuts/entry.js11
2 files changed, 16 insertions, 7 deletions
diff --git a/app/Resources/static/themes/baggy/js/init.js b/app/Resources/static/themes/baggy/js/init.js
index 5a8911ad..05360a28 100755
--- a/app/Resources/static/themes/baggy/js/init.js
+++ b/app/Resources/static/themes/baggy/js/init.js
@@ -1,7 +1,5 @@
1/* jQuery */
1import $ from 'jquery'; 2import $ from 'jquery';
2import { initFilters, initExport } from '../../_global/js/tools';
3import './shortcuts/main.js';
4import './shortcuts/entry.js';
5 3
6/* eslint-disable no-unused-vars */ 4/* eslint-disable no-unused-vars */
7/* jquery has default scope */ 5/* jquery has default scope */
@@ -9,8 +7,16 @@ import cookie from 'jquery.cookie';
9import ui from 'jquery-ui-browserify'; 7import ui from 'jquery-ui-browserify';
10/* eslint-enable no-unused-vars */ 8/* eslint-enable no-unused-vars */
11 9
10/* Annotations */
12import annotator from 'annotator'; 11import annotator from 'annotator';
13 12
13/* Shortcuts */
14import './shortcuts/main';
15import './shortcuts/entry';
16import '../../_global/js/shortcuts/main';
17import '../../_global/js/shortcuts/entry';
18
19/* Tools */
14import { savePercent, retrievePercent } from '../../_global/js/tools'; 20import { savePercent, retrievePercent } from '../../_global/js/tools';
15import toggleSaveLinkForm from './uiTools'; 21import toggleSaveLinkForm from './uiTools';
16 22
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/entry.js b/app/Resources/static/themes/baggy/js/shortcuts/entry.js
index d618f28e..77d267a3 100644
--- a/app/Resources/static/themes/baggy/js/shortcuts/entry.js
+++ b/app/Resources/static/themes/baggy/js/shortcuts/entry.js
@@ -1,19 +1,22 @@
1import Mousetrap from 'mousetrap';
2import $ from 'jquery';
3
1/* Article view */ 4/* Article view */
2Mousetrap.bind('o', () => { 5Mousetrap.bind('o', () => {
3 $('div#article_toolbar ul.links li:nth-child(2) a')[0].click(); 6 $('div#article_toolbar ul.links li:nth-child(2) a')[0].click();
4}); 7});
5 8
6/* mark as favorite */ 9/* mark as favorite */
7Mousetrap.bind('s', () => { 10Mousetrap.bind('s', () => {
8 $('div#article_toolbar ul.links li:nth-child(5) a')[0].click(); 11 $('div#article_toolbar ul.links li:nth-child(5) a')[0].click();
9}); 12});
10 13
11/* mark as read */ 14/* mark as read */
12Mousetrap.bind('a', () => { 15Mousetrap.bind('a', () => {
13 $('div#article_toolbar ul.links li:nth-child(4) a')[0].click(); 16 $('div#article_toolbar ul.links li:nth-child(4) a')[0].click();
14}); 17});
15 18
16/* delete */ 19/* delete */
17Mousetrap.bind('del', () => { 20Mousetrap.bind('del', () => {
18 $('div#article_toolbar ul.links li:nth-child(7) a')[0].click(); 21 $('div#article_toolbar ul.links li:nth-child(7) a')[0].click();
19}); 22});