Merge pull request #390 from westlywright/master

bug fixes search
This commit is contained in:
Vincent Fiduccia
2018-07-03 14:54:59 -07:00
committed by GitHub
4 changed files with 18 additions and 20 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(