-
Notifications
You must be signed in to change notification settings - Fork 8
Fix: search bar clear and individual index for docs #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ansys-sphinx-theme into fix/search-clear
jorgepiloto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting some last changes. Style looks good! Thanks, @Revathyvenugopal162.
Co-authored-by: Jorge Martínez <28702884+jorgepiloto@users.noreply.github.com>
…ansys-sphinx-theme into fix/search-clear
| // Listen for changes in the dropdown selector and update the index uid and suggestion accordingly | ||
| document | ||
| .getElementById("indexUidSelector") | ||
| .addEventListener("change", function () { | ||
| theSearchBar.indexUid = this.value; | ||
| theSearchBar.inputSelector = "#search-bar-input"; | ||
| theSearchBar.suggestionIndexUid = this.value; | ||
| theSearchBar.autocomplete.autocomplete.setVal(""); | ||
| }); | ||
|
|
||
| // Listen for changes in the search bar input and update the suggestion accordingly | ||
| document | ||
| .getElementById("search-bar-input") | ||
| .addEventListener("change", function () { | ||
| theSearchBar.suggestionIndexUid = | ||
| document.getElementById("indexUidSelector").value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should definitely help us to improve the suggestion provided to users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for handling that.
RobPasMue
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
jorgepiloto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, @Revathyvenugopal162!
Uh oh!
There was an error while loading. Please reload this page.