diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-03-31 20:21:41 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-05-04 14:49:44 +0200 |
commit | 64f81bc31699ed239e4becec1cfa7ebc0bef2b5a (patch) | |
tree | 6363a596055683587d11aaffcf30608a682988aa /app/Resources/static/themes/material/js/tools.js | |
parent | 3b4502e0e663866e7bac00164fd935fdc92309d6 (diff) | |
download | wallabag-64f81bc31699ed239e4becec1cfa7ebc0bef2b5a.tar.gz wallabag-64f81bc31699ed239e4becec1cfa7ebc0bef2b5a.tar.zst wallabag-64f81bc31699ed239e4becec1cfa7ebc0bef2b5a.zip |
Adds Webpack support and removes the use for Grunt
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
use scss
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
fix build, add babel, fix annotations
fixes (and improvements !) for baggy
add live reload & environments & eslint & theme fixes
Diffstat (limited to 'app/Resources/static/themes/material/js/tools.js')
-rw-r--r-- | app/Resources/static/themes/material/js/tools.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/js/tools.js b/app/Resources/static/themes/material/js/tools.js new file mode 100644 index 00000000..39398fd8 --- /dev/null +++ b/app/Resources/static/themes/material/js/tools.js | |||
@@ -0,0 +1,24 @@ | |||
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 }; | ||