reveal sidebar when clicking the search icon
This commit is contained in:
parent
e988c1764f
commit
a36c5fa052
1 changed files with 13 additions and 0 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
|
// main
|
||||||
initContentNav();
|
initContentNav();
|
||||||
initSidebarToggling();
|
initSidebarToggling();
|
||||||
initMenuHandling();
|
initMenuHandling();
|
||||||
initContentMinHeight();
|
initContentMinHeight();
|
||||||
|
initSearchToggling();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue