summaryrefslogtreecommitdiffstats
path: root/theme/assets/app.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-06 16:47:28 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-06 16:47:28 -0700
commit6fc8255b7fc668c0d87284a92cdd1d83b129472c (patch)
tree8e588cc77de3715c85b2ba604236118db4d3ef2c /theme/assets/app.js
parenta42f287a9299d5e2e67198ae9c4488390da585e9 (diff)
downloadgitbook-6fc8255b7fc668c0d87284a92cdd1d83b129472c.zip
gitbook-6fc8255b7fc668c0d87284a92cdd1d83b129472c.tar.gz
gitbook-6fc8255b7fc668c0d87284a92cdd1d83b129472c.tar.bz2
Reset search results when hidding search bar
Diffstat (limited to 'theme/assets/app.js')
-rw-r--r--theme/assets/app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/theme/assets/app.js b/theme/assets/app.js
index d83e1c4..6498128 100644
--- a/theme/assets/app.js
+++ b/theme/assets/app.js
@@ -21052,6 +21052,8 @@ define('core/search',[
$searchInput.focus();
} else {
$searchInput.blur();
+ $searchInput.val("");
+ sidebar.filter(null);
}
};