mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-11 10:16:28 +00:00
64f81bc316
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
24 lines
610 B
JavaScript
24 lines
610 B
JavaScript
import $ from 'jquery';
|
|
|
|
function initFilters() {
|
|
// no display if filters not available
|
|
if ($('div').is('#filters')) {
|
|
$('#button_filters').show();
|
|
$('.js-filters-action').sideNav({ edge: 'right' });
|
|
$('#clear_form_filters').on('click', () => {
|
|
$('#filters input').val('');
|
|
$('#filters :checked').removeAttr('checked');
|
|
return false;
|
|
});
|
|
}
|
|
}
|
|
|
|
function initExport() {
|
|
// no display if export not available
|
|
if ($('div').is('#export')) {
|
|
$('#button_export').show();
|
|
$('.js-export-action').sideNav({ edge: 'right' });
|
|
}
|
|
}
|
|
|
|
export { initExport, initFilters };
|