diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-06 16:51:14 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-06 16:51:14 -0700 |
commit | d14bd7245f704205e06d25db9a3b614ca3b11930 (patch) | |
tree | 64358f3dc25f63dd5d534b9d2183e4b1d75a75ea /theme/javascript | |
parent | 6fc8255b7fc668c0d87284a92cdd1d83b129472c (diff) | |
download | gitbook-d14bd7245f704205e06d25db9a3b614ca3b11930.zip gitbook-d14bd7245f704205e06d25db9a3b614ca3b11930.tar.gz gitbook-d14bd7245f704205e06d25db9a3b614ca3b11930.tar.bz2 |
Open sidebar when opening search
Diffstat (limited to 'theme/javascript')
-rw-r--r-- | theme/javascript/core/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/javascript/core/search.js b/theme/javascript/core/search.js index f4588c4..0aca997 100644 --- a/theme/javascript/core/search.js +++ b/theme/javascript/core/search.js @@ -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(); |