reveal sidebar when clicking the search icon

This commit is contained in:
Andreas Gohr 2017-02-21 15:09:01 +01:00
commit a36c5fa052

View file

@ -135,10 +135,23 @@ jQuery(function () {
});
};
/**
* Show sidebar when accessing the search
*/
const initSearchToggling = function () {
jQuery('.toggleSearch').find('a').click(function (e) {
setDefaultContent();
e.preventDefault();
jQuery('#qsearch__in').focus();
});
};
// main
initContentNav();
initSidebarToggling();
initMenuHandling();
initContentMinHeight();
initSearchToggling();
});