aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources')
-rwxr-xr-xapp/Resources/static/themes/material/index.js3
-rw-r--r--app/Resources/static/themes/material/js/tools.js8
2 files changed, 10 insertions, 1 deletions
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index d8f5628c..6d9b145e 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -8,7 +8,7 @@ import 'materialize-css/dist/js/materialize';
8import '../_global/index'; 8import '../_global/index';
9 9
10/* Tools */ 10/* Tools */
11import { initExport, initFilters, initRandom } from './js/tools'; 11import { initExport, initFilters, initRandom, initSort } from './js/tools';
12 12
13/* Import shortcuts */ 13/* Import shortcuts */
14import './js/shortcuts/main'; 14import './js/shortcuts/main';
@@ -70,6 +70,7 @@ $(document).ready(() => {
70 initRandom(); 70 initRandom();
71 stickyNav(); 71 stickyNav();
72 articleScroll(); 72 articleScroll();
73 initSort();
73 74
74 const toggleNav = (toShow, toFocus) => { 75 const toggleNav = (toShow, toFocus) => {
75 $('.nav-panel-actions').hide(100); 76 $('.nav-panel-actions').hide(100);
diff --git a/app/Resources/static/themes/material/js/tools.js b/app/Resources/static/themes/material/js/tools.js
index 0b3d3038..8563a14a 100644
--- a/app/Resources/static/themes/material/js/tools.js
+++ b/app/Resources/static/themes/material/js/tools.js
@@ -29,8 +29,16 @@ function initRandom() {
29 } 29 }
30} 30}
31 31
32function initSort() {
33 // no display if export (ie: entries) not available
34 if ($('div').is('#sort')) {
35 $('#button_sort').show();
36 }
37}
38
32export { 39export {
33 initExport, 40 initExport,
34 initFilters, 41 initFilters,
35 initRandom, 42 initRandom,
43 initSort,
36}; 44};