Open sidebar when opening search

This commit is contained in:
Samy Pessé
2014-04-06 16:51:14 -07:00
parent 6fc8255b7f
commit d14bd7245f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,11 +37,11 @@ define([
var toggleSearch = function(_state) {
if (state != null && isSearchOpen() == _state) return;
state.$book.toggleClass("with-search", _state);
// If search bar is open: focus input
if (isSearchOpen()) {
sidebar.toggle(true);
$searchInput.focus();
} else {
$searchInput.blur();