aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/_global/js/tools.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static/themes/_global/js/tools.js')
-rw-r--r--app/Resources/static/themes/_global/js/tools.js23
1 files changed, 1 insertions, 22 deletions
diff --git a/app/Resources/static/themes/_global/js/tools.js b/app/Resources/static/themes/_global/js/tools.js
index cee84fa8..774f4539 100644
--- a/app/Resources/static/themes/_global/js/tools.js
+++ b/app/Resources/static/themes/_global/js/tools.js
@@ -31,25 +31,4 @@ function retrievePercent(id) {
31 return true; 31 return true;
32} 32}
33 33
34function initFilters() { 34export { savePercent, retrievePercent };
35 // no display if filters not available
36 if ($('div').is('#filters')) {
37 $('#button_filters').show();
38 $('.js-filters-action').sideNav({ edge: 'right' });
39 $('#clear_form_filters').on('click', () => {
40 $('#filters input').val('');
41 $('#filters :checked').removeAttr('checked');
42 return false;
43 });
44 }
45}
46
47function initExport() {
48 // no display if export not available
49 if ($('div').is('#export')) {
50 $('#button_export').show();
51 $('.js-export-action').sideNav({ edge: 'right' });
52 }
53}
54
55export { savePercent, retrievePercent, initFilters, initExport };