mobile handling of the sidebar SPR-840
This commit is contained in:
parent
52983d2382
commit
4055de39fa
3 changed files with 66 additions and 19 deletions
|
@ -150,11 +150,22 @@ jQuery(function () {
|
|||
|
||||
};
|
||||
|
||||
/**
|
||||
* Open and close the sidebar in mobile view
|
||||
*/
|
||||
const initMobileToggling = function () {
|
||||
jQuery('.menu-togglelink').find('a').click(function (e) {
|
||||
e.preventDefault();
|
||||
jQuery('#dokuwiki__aside').toggleClass('show');
|
||||
});
|
||||
};
|
||||
|
||||
// main
|
||||
initContentNav();
|
||||
initSidebarToggling();
|
||||
initMenuHandling();
|
||||
initContentMinHeight();
|
||||
initSearchToggling();
|
||||
initMobileToggling();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue