]>
Commit | Line | Data |
---|---|---|
1 | import $ from 'jquery'; | |
2 | ||
3 | function initFilters() { | |
4 | // no display if filters not available | |
5 | if ($('div').is('#filters')) { | |
6 | $('#button_filters').show(); | |
7 | $('.js-filters-action').sideNav({ edge: 'right' }); | |
8 | $('#clear_form_filters').on('click', () => { | |
9 | $('#filters input').val(''); | |
10 | $('#filters :checked').removeAttr('checked'); | |
11 | return false; | |
12 | }); | |
13 | } | |
14 | } | |
15 | ||
16 | function initExport() { | |
17 | // no display if export not available | |
18 | if ($('div').is('#export')) { | |
19 | $('#button_export').show(); | |
20 | $('.js-export-action').sideNav({ edge: 'right' }); | |
21 | } | |
22 | } | |
23 | ||
24 | export { initExport, initFilters }; |