Merge remote-tracking branch 'origin/mobilesidebar'

This commit is contained in:
Jana Deutschländer 2017-03-02 12:11:51 +01:00
commit 75a1a114df
7 changed files with 122 additions and 25 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();
});