aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/_global/js
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-03-31 20:21:41 +0200
committerThomas Citharel <tcit@tcit.fr>2017-05-04 14:49:44 +0200
commit64f81bc31699ed239e4becec1cfa7ebc0bef2b5a (patch)
tree6363a596055683587d11aaffcf30608a682988aa /app/Resources/static/themes/_global/js
parent3b4502e0e663866e7bac00164fd935fdc92309d6 (diff)
downloadwallabag-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/_global/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 };