mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Initialize filters and export sidenav with common ones
This commit is contained in:
parent
1e61a51e82
commit
63cf403eaf
3 changed files with 7 additions and 22 deletions
|
@ -27,7 +27,7 @@ import './js/highlight';
|
|||
|
||||
/* Tools */
|
||||
import {
|
||||
savePercent, retrievePercent, initExport, initFilters, initPreviewText,
|
||||
savePercent, retrievePercent, initPreviewText,
|
||||
} from './js/tools';
|
||||
|
||||
/* Import shortcuts */
|
||||
|
@ -273,7 +273,10 @@ const articleScroll = () => {
|
|||
|
||||
$(document).ready(() => {
|
||||
// sidenav
|
||||
$('.sidenav').sidenav();
|
||||
document.querySelectorAll('.sidenav').forEach((element) => {
|
||||
$(element).sidenav({ edge: element.getAttribute('data-edge') ?? 'left' });
|
||||
});
|
||||
|
||||
$('select').formSelect();
|
||||
$('.collapsible[data-collapsible="accordion"]').collapsible();
|
||||
$('.collapsible[data-collapsible="expandable"]').collapsible({
|
||||
|
@ -291,8 +294,6 @@ $(document).ready(() => {
|
|||
$('.tooltipped').tooltip();
|
||||
$('.fixed-action-btn').floatingActionButton();
|
||||
|
||||
initFilters();
|
||||
initExport();
|
||||
stickyNav();
|
||||
articleScroll();
|
||||
initPreviewText();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue