1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Back-end hide/show of random, export and filters actions

This commit is contained in:
Yassine Guedidi 2025-02-23 10:22:49 +01:00
parent 595f35a1a5
commit 0330d01a49
5 changed files with 49 additions and 57 deletions

View file

@ -34,7 +34,6 @@ function retrievePercent(id, resized) {
function initFilters() {
// no display if filters not available
if ($('div').is('#filters')) {
$('#button_filters').show();
$('#filters.sidenav').sidenav({ edge: 'right' });
$('#clear_form_filters').on('click', () => {
$('#filters input').val('');
@ -48,18 +47,10 @@ function initFilters() {
function initExport() {
// no display if export not available
if ($('div').is('#export')) {
$('#button_export').show();
$('#export.sidenav').sidenav({ edge: 'right' });
}
}
function initRandom() {
// no display if export (ie: entries) not available
if ($('div').is('#export')) {
$('#button_random').show();
}
}
function initPreviewText() {
// no display if preview_text not available
if ($('div').is('#preview-article')) {
@ -81,6 +72,5 @@ export {
retrievePercent,
initExport,
initFilters,
initRandom,
initPreviewText,
};