mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-06 17:41:01 +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
|
@ -31,20 +31,6 @@ function retrievePercent(id, resized) {
|
|||
return true;
|
||||
}
|
||||
|
||||
function initFilters() {
|
||||
// no display if filters not available
|
||||
if ($('div').is('#filters')) {
|
||||
$('#filters.sidenav').sidenav({ edge: 'right' });
|
||||
}
|
||||
}
|
||||
|
||||
function initExport() {
|
||||
// no display if export not available
|
||||
if ($('div').is('#export')) {
|
||||
$('#export.sidenav').sidenav({ edge: 'right' });
|
||||
}
|
||||
}
|
||||
|
||||
function initPreviewText() {
|
||||
// no display if preview_text not available
|
||||
if ($('div').is('#preview-article')) {
|
||||
|
@ -64,7 +50,5 @@ function initPreviewText() {
|
|||
export {
|
||||
savePercent,
|
||||
retrievePercent,
|
||||
initExport,
|
||||
initFilters,
|
||||
initPreviewText,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue