forked from wallabag/wallabag
Move icon into the top menu bar
Change the way to select a random entry: - select all ids from the given user (with filters) - choose randomly one in php - find that entry
This commit is contained in:
@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user