diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Resources/static/themes/baggy/js/shortcuts/main.js | 7 | ||||
-rwxr-xr-x | app/Resources/static/themes/material/css/main.css | 10 | ||||
-rwxr-xr-x | app/Resources/static/themes/material/js/init.js | 2 | ||||
-rw-r--r-- | app/Resources/static/themes/material/js/shortcuts/main.js | 6 | ||||
-rw-r--r-- | app/config/config.yml | 1 |
5 files changed, 22 insertions, 4 deletions
diff --git a/app/Resources/static/themes/baggy/js/shortcuts/main.js b/app/Resources/static/themes/baggy/js/shortcuts/main.js index e69de29b..aed09aee 100644 --- a/app/Resources/static/themes/baggy/js/shortcuts/main.js +++ b/app/Resources/static/themes/baggy/js/shortcuts/main.js | |||
@@ -0,0 +1,7 @@ | |||
1 | $(document).ready(() => { | ||
2 | Mousetrap.bind('s', () => { | ||
3 | $('#search').trigger('click'); | ||
4 | $('#search_entry_term').focus(); | ||
5 | return false; | ||
6 | }); | ||
7 | }); | ||
diff --git a/app/Resources/static/themes/material/css/main.css b/app/Resources/static/themes/material/css/main.css index df126fb4..8e33cfbc 100755 --- a/app/Resources/static/themes/material/css/main.css +++ b/app/Resources/static/themes/material/css/main.css | |||
@@ -322,11 +322,13 @@ nav input { | |||
322 | color: #444; | 322 | color: #444; |
323 | } | 323 | } |
324 | 324 | ||
325 | .input-field.nav-panel-add label { | 325 | .input-field.nav-panel-add label, |
326 | .input-field.nav-panel-search label { | ||
326 | left: 1rem; | 327 | left: 1rem; |
327 | } | 328 | } |
328 | 329 | ||
329 | .input-field.nav-panel-add .close { | 330 | .input-field.nav-panel-add .close, |
331 | .input-field.nav-panel-search .close { | ||
330 | position: absolute; | 332 | position: absolute; |
331 | top: 0; | 333 | top: 0; |
332 | right: 1rem; | 334 | right: 1rem; |
@@ -345,7 +347,9 @@ nav input { | |||
345 | } | 347 | } |
346 | 348 | ||
347 | .input-field.nav-panel-add, | 349 | .input-field.nav-panel-add, |
348 | .input-field.nav-panel-add form { | 350 | .input-field.nav-panel-add form, |
351 | .input-field.nav-panel-search, | ||
352 | .input-field.nav-panel-search form { | ||
349 | height: 100%; | 353 | height: 100%; |
350 | } | 354 | } |
351 | 355 | ||
diff --git a/app/Resources/static/themes/material/js/init.js b/app/Resources/static/themes/material/js/init.js index 9746224b..0b2832c0 100755 --- a/app/Resources/static/themes/material/js/init.js +++ b/app/Resources/static/themes/material/js/init.js | |||
@@ -55,7 +55,7 @@ $(document).ready(() => { | |||
55 | $('.nav-panels .action').hide(100); | 55 | $('.nav-panels .action').hide(100); |
56 | $('.nav-panel-menu').addClass('hidden'); | 56 | $('.nav-panel-menu').addClass('hidden'); |
57 | $('.nav-panels').css('background', 'white'); | 57 | $('.nav-panels').css('background', 'white'); |
58 | $('#searchfield').focus(); | 58 | $('#search_entry_term').focus(); |
59 | return false; | 59 | return false; |
60 | }); | 60 | }); |
61 | $('.close').on('click', () => { | 61 | $('.close').on('click', () => { |
diff --git a/app/Resources/static/themes/material/js/shortcuts/main.js b/app/Resources/static/themes/material/js/shortcuts/main.js index 8514f71e..ad4ca80a 100644 --- a/app/Resources/static/themes/material/js/shortcuts/main.js +++ b/app/Resources/static/themes/material/js/shortcuts/main.js | |||
@@ -30,6 +30,12 @@ $(document).ready(() => { | |||
30 | /* Actions */ | 30 | /* Actions */ |
31 | Mousetrap.bind('g n', () => { | 31 | Mousetrap.bind('g n', () => { |
32 | $('#nav-btn-add').trigger('click'); | 32 | $('#nav-btn-add').trigger('click'); |
33 | return false; | ||
34 | }); | ||
35 | |||
36 | Mousetrap.bind('s', () => { | ||
37 | $('#nav-btn-search').trigger('click'); | ||
38 | return false; | ||
33 | }); | 39 | }); |
34 | 40 | ||
35 | Mousetrap.bind('esc', () => { | 41 | Mousetrap.bind('esc', () => { |
diff --git a/app/config/config.yml b/app/config/config.yml index 48496bc2..53c26beb 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -364,3 +364,4 @@ fos_js_routing: | |||
364 | - developer | 364 | - developer |
365 | - howto | 365 | - howto |
366 | - logout | 366 | - logout |
367 | - new | ||