Merge branch 'develop' of https://github.com/algolia/docsearch into develop
This commit is contained in:
commit
14d6d36368
6 changed files with 34 additions and 13 deletions
20
CHANGELOG.md
20
CHANGELOG.md
|
|
@ -1,3 +1,23 @@
|
|||
<a name="1.0.1"></a>
|
||||
## [1.0.1](https://github.com/algolia/docsearch/compare/v1.0.0...v1.0.1) (2015-12-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **handleSelected:** ensure we're calling setVal on the right object ([31abbd7](https://github.com/algolia/docsearch/commit/31abbd7)), closes [#51](https://github.com/algolia/docsearch/issues/51)
|
||||
|
||||
|
||||
|
||||
<a name="1.0.0"></a>
|
||||
# [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **isSubCategoryHeader:** ensure we hide the content of the left column if this flag is not set ([0e04ce4](https://github.com/algolia/docsearch/commit/0e04ce4)), closes [#47](https://github.com/algolia/docsearch/issues/47)
|
||||
|
||||
|
||||
|
||||
<a name="0.0.7"></a>
|
||||
## [0.0.7](https://github.com/algolia/docsearch/compare/v0.0.6...v0.0.7) (2015-12-22)
|
||||
|
||||
|
|
|
|||
15
README.md
15
README.md
|
|
@ -25,13 +25,14 @@ Check out our [website][3] to add an outstanding search to your documentation.
|
|||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table of Contents
|
||||
|
||||
- [Introduction][5]
|
||||
- [Setup][6]
|
||||
- [Customization][7]
|
||||
- [Development workflow][8]
|
||||
- [Local example][9]
|
||||
- [Documentation website][10]
|
||||
- [MacOS][11]
|
||||
- [Introduction](#introduction)
|
||||
- [Setup](#setup)
|
||||
- [Customization](#customization)
|
||||
- [Development workflow](#development-workflow)
|
||||
- [Local example](#local-example)
|
||||
- [Local build](#local-build)
|
||||
- [Documentation website](#documentation-website)
|
||||
- [MacOS](#macos)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
|
|
|
|||
2
npm-shrinkwrap.json
generated
2
npm-shrinkwrap.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docsearch.js",
|
||||
"version": "0.0.7",
|
||||
"version": "1.0.1",
|
||||
"npm-shrinkwrap-version": "200.4.0",
|
||||
"node-version": "v4.2.2",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "docsearch.js",
|
||||
"version": "0.0.7",
|
||||
"version": "1.0.1",
|
||||
"description": "Add an autocomplete dropdown to your documentation",
|
||||
"main": "dist/npm/index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class DocSearch {
|
|||
footer: templates.footer
|
||||
}
|
||||
}]);
|
||||
this.autocomplete.on('autocomplete:selected', this.handleSelected);
|
||||
this.autocomplete.on('autocomplete:selected', this.handleSelected.bind(null, this.autocomplete.autocomplete));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -161,8 +161,8 @@ class DocSearch {
|
|||
};
|
||||
}
|
||||
|
||||
handleSelected(event, suggestion) {
|
||||
this.autocomplete.autocomplete.setVal('');
|
||||
handleSelected(input, event, suggestion) {
|
||||
input.setVal('');
|
||||
window.location.href = suggestion.url;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export default '0.0.7';
|
||||
export default '1.0.1';
|
||||
|
|
|
|||
Loading…
Reference in a new issue