X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FResources%2Fstatic%2Fthemes%2Fmaterial%2Fjs%2Ftools.js;fp=app%2FResources%2Fstatic%2Fthemes%2Fmaterial%2Fjs%2Ftools.js;h=0b3d303856a5b0b806390bd795fab6c00c5ac3a6;hb=50f35f0db2be9586205e793f315608eec59c9666;hp=39398fd8a4c0fb4a15fd5ce2750ada6f2ca0e3ec;hpb=9a57653aec85b0f5220436d5cb76545e66c24a11;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/Resources/static/themes/material/js/tools.js b/app/Resources/static/themes/material/js/tools.js index 39398fd8..0b3d3038 100644 --- a/app/Resources/static/themes/material/js/tools.js +++ b/app/Resources/static/themes/material/js/tools.js @@ -8,6 +8,7 @@ function initFilters() { $('#clear_form_filters').on('click', () => { $('#filters input').val(''); $('#filters :checked').removeAttr('checked'); + return false; }); } @@ -21,4 +22,15 @@ function initExport() { } } -export { initExport, initFilters }; +function initRandom() { + // no display if export (ie: entries) not available + if ($('div').is('#export')) { + $('#button_random').show(); + } +} + +export { + initExport, + initFilters, + initRandom, +};