diff options
Diffstat (limited to 'app/Resources/static/themes/material/index.js')
-rwxr-xr-x | app/Resources/static/themes/material/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js index 2926cad1..4b194d00 100755 --- a/app/Resources/static/themes/material/index.js +++ b/app/Resources/static/themes/material/index.js | |||
@@ -17,6 +17,13 @@ import './js/shortcuts/entry'; | |||
17 | /* Theme style */ | 17 | /* Theme style */ |
18 | import './css/index.scss'; | 18 | import './css/index.scss'; |
19 | 19 | ||
20 | const stickyNav = () => { | ||
21 | const nav = $('.js-entry-nav-top'); | ||
22 | $('[data-toggle="actions"]').click(() => { | ||
23 | nav.toggleClass('entry-nav-top--sticky'); | ||
24 | }); | ||
25 | }; | ||
26 | |||
20 | $(document).ready(() => { | 27 | $(document).ready(() => { |
21 | // sideNav | 28 | // sideNav |
22 | $('.button-collapse').sideNav(); | 29 | $('.button-collapse').sideNav(); |
@@ -36,6 +43,7 @@ $(document).ready(() => { | |||
36 | initFilters(); | 43 | initFilters(); |
37 | initExport(); | 44 | initExport(); |
38 | initRandom(); | 45 | initRandom(); |
46 | stickyNav(); | ||
39 | 47 | ||
40 | const toggleNav = (toShow, toFocus) => { | 48 | const toggleNav = (toShow, toFocus) => { |
41 | $('.nav-panel-actions').hide(100); | 49 | $('.nav-panel-actions').hide(100); |