mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
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:
parent
9a57653aec
commit
50f35f0db2
22 changed files with 57 additions and 28 deletions
|
@ -8,7 +8,7 @@ import 'materialize-css/dist/js/materialize';
|
|||
import '../_global/index';
|
||||
|
||||
/* Tools */
|
||||
import { initExport, initFilters } from './js/tools';
|
||||
import { initExport, initFilters, initRandom } from './js/tools';
|
||||
|
||||
/* Import shortcuts */
|
||||
import './js/shortcuts/main';
|
||||
|
@ -32,8 +32,10 @@ $(document).ready(() => {
|
|||
format: 'dd/mm/yyyy',
|
||||
container: 'body',
|
||||
});
|
||||
|
||||
initFilters();
|
||||
initExport();
|
||||
initRandom();
|
||||
|
||||
const toggleNav = (toShow, toFocus) => {
|
||||
$('.nav-panel-actions').hide(100);
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue