-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Save selected search tab #45281
Save selected search tab #45281
Conversation
Very cool 👍 |
src/librustdoc/html/static/main.js
Outdated
'<div>As return value</div></div><div id="results">'; | ||
`<div${currentTab === 0 ? ' class="selected"' : ""}>Types/modules</div>` + | ||
`<div${currentTab === 1 ? ' class="selected"' : ""}>As parameters</div>` + | ||
`<div${currentTab === 2 ? ' class="selected"' : ""}>As return value</div>` + |
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.
I don't think we should use template literals?
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.
Excellent point!
9717e21
to
a7f0db6
Compare
Updated. |
a7f0db6
to
45bb03f
Compare
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.
👍
📌 Commit 45bb03f has been approved by |
@QuietMisdreavus: Sounds like a strange idea... It's just a |
…etMisdreavus Save selected search tab Fixes rust-lang#45278. r? @rust-lang/docs
Save the highlighted item when switching tab To be merged after #45281. r? @rust-lang/docs
Fixes #45278.
r? @rust-lang/docs