Uh oh!
There was an error while loading. Please reload this page.
Fix anchor invalid redirection to search - #41950
Conversation
There was a problem hiding this comment.
This should be something like the following to avoid shadowing the search function and to add the class to the correct element:
varsearch_c=document.getElementById('search');if(hasClass(search_c,'content')){addClass(search_c,'hidden');}There was a problem hiding this comment.
This was the issue actually. I thought the variable was limited to the scope, big mistake!
There was a problem hiding this comment.
If params.search is undefined this should set the value to "" not "undefined" like it currently does.
There was a problem hiding this comment.
This would break clearing the search results so should be removed.
There was a problem hiding this comment.
It seems it's still working. So not sure if I tested what you had in mind.
There was a problem hiding this comment.
Oh my bad, I need to test on a non local path.
ff6dd78 to
b09a19bCompareGuillaumeGomez
commented
May 12, 2017
Updated. |
frewsxcv
commented
May 13, 2017
@bors r+ rollup |
bors
commented
May 13, 2017
📌 Commit b09a19b has been approved by |
…wsxcv Fix anchor invalid redirection to search Fixesrust-lang#41933. r? @rust-lang/docs
…wsxcv Fix anchor invalid redirection to search Fixesrust-lang#41933. r? @rust-lang/docs
Fixes#41933.
r? @rust-lang/docs