mobile handling of the sidebar SPR-840

This commit is contained in:
Andreas Gohr 2017-02-22 14:58:43 +01:00
commit 4055de39fa
3 changed files with 66 additions and 19 deletions

View file

@ -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();
});