Bug fixes for search

This commit is contained in:
Westly Wright
2018-07-03 14:37:27 -07:00
parent f1c3b6cf11
commit 1cbbbc1ce5
2 changed files with 15 additions and 6 deletions
+6
View File
@@ -9,6 +9,12 @@ const bootstrapDocsSearch = function() {
apiKey: 'b7f43c16886fec97b87981e9e62ef1a5',
indexName: window.location.host === 'rancher.com' ? 'prod_docs' : 'dev_docs',
routing: true,
searchFunction: function(helper) {
if (helper.state.query === "") {
return;
}
helper.search();
}
});
search.addWidget(