mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +00:00
Extract Sticky Nav controller
This commit is contained in:
parent
2054be7bd4
commit
c9cfae11f7
4 changed files with 13 additions and 11 deletions
|
@ -129,16 +129,7 @@ import './scss/index.scss';
|
|||
addDarkThemeListeners();
|
||||
}());
|
||||
|
||||
const stickyNav = () => {
|
||||
const nav = $('.js-entry-nav-top');
|
||||
$('[data-toggle="actions"]').click(() => {
|
||||
nav.toggleClass('entry-nav-top--sticky');
|
||||
});
|
||||
};
|
||||
|
||||
$(document).ready(() => {
|
||||
stickyNav();
|
||||
|
||||
$('#nav-btn-add-tag').on('click', () => {
|
||||
$('.nav-panel-add-tag').toggle();
|
||||
$('.nav-panel-menu').addClass('hidden');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue