Merge branch 'mobilesidebar' into live

* mobilesidebar:
  styled the menu button
  mobile handling of the sidebar SPR-840
This commit is contained in:
Andreas Gohr 2017-02-23 09:54:56 +01:00
commit f9efedd6e3
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();
});