Merge branch 'sidebar' into live
* sidebar: simplistic qsearch support reveal sidebar when clicking the search icon
This commit is contained in:
commit
d8b607a333
3 changed files with 20 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue