]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/material/js/init.js
Merge pull request #2677 from wallabag/add-wallabag_user.de.yml
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / js / init.js
index 18f7b40affc65f6d93266427d72e244313eae4aa..0b2832c068fb4bcdc9d82e47f6f3a01392f18322 100755 (executable)
@@ -1,8 +1,21 @@
-const $ = require('jquery');
-global.jQuery = $;
+/* jQuery */
+import $ from 'jquery';
+
+/* Annotations */
+import annotator from 'annotator';
+
+/* Tools */
+import { savePercent, retrievePercent, initFilters, initExport } from '../../_global/js/tools';
+
+/* Import shortcuts */
+import './shortcuts/main';
+import './shortcuts/entry';
+import '../../_global/js/shortcuts/main';
+import '../../_global/js/shortcuts/entry';
+
 require('materialize'); // eslint-disable-line
-const annotator = require('annotator');
-import { savePercent, retrievePercent, initFilters, initExport } from '../../_global/js/tools.js';
+
+global.jQuery = $;
 
 $(document).ready(() => {
   // sideNav
@@ -42,7 +55,7 @@ $(document).ready(() => {
     $('.nav-panels .action').hide(100);
     $('.nav-panel-menu').addClass('hidden');
     $('.nav-panels').css('background', 'white');
-    $('#searchfield').focus();
+    $('#search_entry_term').focus();
     return false;
   });
   $('.close').on('click', () => {